Chronology.dateNow

Obtains the current local date _in this chronology from the system clock _in the specified time-zone. !(p) This will query the {@link Clock#system(ZoneId) system clock} to obtain the current date. Specifying the time-zone avoids dependence on the time-zone. !(p) Using this method will prevent the ability to use an alternate clock for testing because the clock is hard-coded.

@implSpec The implementation invokes {@link #dateNow(Clock)}.

@param zone the zone ID to use, not null @return the current local date using the system clock, not null @throws DateTimeException if unable to create the date

  1. ChronoLocalDate dateNow()
  2. ChronoLocalDate dateNow(ZoneId zone)
    interface Chronology
  3. ChronoLocalDate dateNow(Clock clock)

Meta