MonthDay.now

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

@param clock the clock to use, not null @return the current month-day, not null

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

Meta