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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 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.
Variable length time units, such as months, are not supported.
- 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
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature
About this chapter
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
DOI: https://doi.org/10.1007/978-1-4842-7395-1_6
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-7394-4
Online ISBN: 978-1-4842-7395-1
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)