MonthDay.now

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

@param zone the zone ID to use, not null @return the current month-day using the system clock, not null

  1. MonthDay now()
  2. MonthDay now(ZoneId zone)
    class MonthDay
    static
    now
  3. MonthDay now(Clock clock)

Meta