Chronology.dateNow

Obtains the current local date _in this chronology from the specified clock. !(p) This will query the specified clock to obtain the current date - today. Using this method allows the use of an alternate clock for testing. The alternate clock may be introduced using {@link Clock dependency injection}.

@implSpec The implementation invokes {@link #date(TemporalAccessor)}.

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

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

Meta