| Extracted from Pike v7.8 release 866 at 2016-04-05.

[Top]
Calendar
Calendar.TimeRange

# Method Calendar.TimeRange()->timezone()

Method timezone

  `TimeRange set_timezone(Timezone tz)`
  `TimeRange set_timezone(string tz)`
  `TimeZone timezone()`

Description

  Set or get the current timezone (including dst) rule.

Note

  The time-of-day may very well change when you change timezone.

  To get the time of day for a specified timezone, select the timezone before getting the time of day:

  `Year(2003)->...->set_timezone(TimeZone.CET)->...->hour(14)->...`