@Override // override with covariant return type public ThaiBuddhistDate dateNow() { return (ThaiBuddhistDate) super.dateNow(); }
@Override // override with covariant return type public HijrahDate dateNow() { return (HijrahDate) super.dateNow(); }
@Override // override with covariant return type public JapaneseDate dateNow(ZoneId zone) { return (JapaneseDate) super.dateNow(zone); }
@Override // override with covariant return type public ThaiBuddhistDate dateNow(ZoneId zone) { return (ThaiBuddhistDate) super.dateNow(zone); }
@Override // override with covariant return type public HijrahDate dateNow(ZoneId zone) { return (HijrahDate) super.dateNow(zone); }
@Override // override with covariant return type public JapaneseDate dateNow() { return (JapaneseDate) super.dateNow(); }
@Override // override with covariant return type public MinguoDate dateNow() { return (MinguoDate) super.dateNow(); }
@Override // override with covariant return type public MinguoDate dateNow(ZoneId zone) { return (MinguoDate) super.dateNow(zone); }
@Override // override with covariant return type public HijrahDate dateNow(Clock clock) { Jdk8Methods.requireNonNull(clock, "clock"); return (HijrahDate) super.dateNow(clock); }
@Override // override with covariant return type public MinguoDate dateNow(Clock clock) { Jdk8Methods.requireNonNull(clock, "clock"); return (MinguoDate) super.dateNow(clock); }
@Override // override with covariant return type public JapaneseDate dateNow(Clock clock) { Jdk8Methods.requireNonNull(clock, "clock"); return (JapaneseDate) super.dateNow(clock); }
@Override // override with covariant return type public ThaiBuddhistDate dateNow(Clock clock) { Jdk8Methods.requireNonNull(clock, "clock"); return (ThaiBuddhistDate) super.dateNow(clock); }
/** * 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 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 local date using the system clock, not null * @throws DateTimeException if unable to create the date */ public ChronoLocalDate dateNow(ZoneId zone) { return dateNow(Clock.system(zone)); }
/** * Obtains the current local date in this chronology from the system clock in the default time-zone. * <p> * This will query the {@link Clock#systemDefaultZone() system clock} in the default * time-zone to obtain the current date. * <p> * Using this method will prevent the ability to use an alternate clock for testing * because the clock is hard-coded. * <p> * This implementation uses {@link #dateNow(Clock)}. * * @return the current local date using the system clock and default time-zone, not null * @throws DateTimeException if unable to create the date */ public ChronoLocalDate dateNow() { return dateNow(Clock.systemDefaultZone()); }