ZonedClock constructor
ZonedClock(
- Clock _clock,
- DateTimeZone _zone,
- CalendarSystem _calendar
Creates a new ZonedClock with the given clock, time zone and calendar system.
clock
: Clock to use to obtain instants.zone
: Time zone to adjust instants into.calendar
: Calendar system to use.
Implementation
ZonedClock(this._clock, this._zone, this._calendar) {
Preconditions.checkNotNull(_clock, 'clock');
Preconditions.checkNotNull(_zone, 'zone');
Preconditions.checkNotNull(_calendar, 'calendar');
}