ZonedClock constructor

ZonedClock(
  1. Clock _clock,
  2. DateTimeZone _zone,
  3. 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');
}