src/share/classes/java/time/package-info.java

Print this page
rev 10048 : 8044740: Convert all JDK versions used in @since tag to 1.n[.n] in jdk repo
Reviewed-by:


 265  * </p>
 266  * <p>
 267  * The API is also designed for user extensibility, as there are many ways of calculating time.
 268  * The {@linkplain java.time.temporal.TemporalField field} and {@linkplain java.time.temporal.TemporalUnit unit}
 269  * API, accessed via {@link java.time.temporal.TemporalAccessor TemporalAccessor} and
 270  * {@link java.time.temporal.Temporal Temporal} provide considerable flexibility to applications.
 271  * In addition, the {@link java.time.temporal.TemporalQuery TemporalQuery} and
 272  * {@link java.time.temporal.TemporalAdjuster TemporalAdjuster} interfaces provide day-to-day
 273  * power, allowing code to read close to business requirements:
 274  * </p>
 275  * <pre>
 276  *   LocalDate customerBirthday = customer.loadBirthdayFromDatabase();
 277  *   LocalDate today = LocalDate.now();
 278  *   if (customerBirthday.equals(today)) {
 279  *     LocalDate specialOfferExpiryDate = today.plusWeeks(2).with(next(FRIDAY));
 280  *     customer.sendBirthdaySpecialOffer(specialOfferExpiryDate);
 281  *   }
 282  *
 283  * </pre>
 284  *
 285  * @since JDK1.8
 286  */
 287 package java.time;


 265  * </p>
 266  * <p>
 267  * The API is also designed for user extensibility, as there are many ways of calculating time.
 268  * The {@linkplain java.time.temporal.TemporalField field} and {@linkplain java.time.temporal.TemporalUnit unit}
 269  * API, accessed via {@link java.time.temporal.TemporalAccessor TemporalAccessor} and
 270  * {@link java.time.temporal.Temporal Temporal} provide considerable flexibility to applications.
 271  * In addition, the {@link java.time.temporal.TemporalQuery TemporalQuery} and
 272  * {@link java.time.temporal.TemporalAdjuster TemporalAdjuster} interfaces provide day-to-day
 273  * power, allowing code to read close to business requirements:
 274  * </p>
 275  * <pre>
 276  *   LocalDate customerBirthday = customer.loadBirthdayFromDatabase();
 277  *   LocalDate today = LocalDate.now();
 278  *   if (customerBirthday.equals(today)) {
 279  *     LocalDate specialOfferExpiryDate = today.plusWeeks(2).with(next(FRIDAY));
 280  *     customer.sendBirthdaySpecialOffer(specialOfferExpiryDate);
 281  *   }
 282  *
 283  * </pre>
 284  *
 285  * @since 1.8
 286  */
 287 package java.time;