Skip to main content

Date Processing

  • Chapter
  • First Online:
Java Challenges
  • 2316 Accesses

Abstract

With Java 8, the JDK was extended with some functionality for date processing. First, the rather unintuitive machine time exists, which proceeds linearly and is represented by the class java.time.Instant. However, various classes are better suited to human ways of thinking. For example, the classes LocalDate, LocalTime, and LocalDateTime from the package java.time represent date values without time zones in the form of a date, a time, and a combination thereof.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    In particular, you are usually not interested in the time zone in which the appointments take place— except for telephone appointments with overseas business partners, for example.

  2. 2.

    Variable length time units, such as months, are not supported.

  3. 3.

    See http://en.wikipedia.org/wiki/ISO_8601#Durations; this results from the historical naming Period, so P, and the T stands for Time.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Inden, M. (2022). Date Processing. In: Java Challenges. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-7395-1_6

Download citation

Publish with us

Policies and ethics