Java SE 8 for the Really Impatient (Fahad Batla's Library) by Cay S. Horstmann

Java SE 8 for the Really Impatient (Fahad Batla's Library) by Cay S. Horstmann

Author:Cay S. Horstmann
Language: eng
Format: epub, mobi
Publisher: Addison-Wesley Professional
Published: 2014-10-26T16:00:00+00:00


In addition to LocalDate, there are also classes MonthDay, YearMonth, and Year to describe partial dates. For example, December 25 (with the year unspecified) can be represented as a MonthDay.

5.3. Date Adjusters

For scheduling applications, you often need to compute dates such as “the first Tuesday of every month.” The TemporalAdjusters class provides a number of static methods for common adjustments. You pass the result of an adjustment method to the with method. For example, the first Tuesday of a month can be computed like this:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.