DateTimeZone functions

These functions create and manipulate datetimezone values.

Name Description
DateTimeZone.FixedLocalNow Returns a DateTimeZone value set to the current date, time, and timezone offset on the system.
DateTimeZone.FixedUtcNow Returns the current date and time in UTC (the GMT timezone).
DateTimeZone.From Returns a datetimezone value from a value.
DateTimeZone.FromFileTime Returns a DateTimeZone from a number value.
DateTimeZone.FromText Creates a datetimezone from local, universal, and custom datetimezone formats.
DateTimeZone.LocalNow Returns a DateTime value set to the current system date and time.
DateTimeZone.RemoveZone Returns a datetime value with the zone information removed from the input datetimezone value.
DateTimeZone.SwitchZone Changes the timezone information for the input DateTimeZone.
DateTimeZone.ToLocal Returns a DateTime value from the local time zone.
DateTimeZone.ToRecord Returns a record containing parts of a DateTime value.
DateTimeZone.ToText Returns a text value from a DateTime value.
DateTimeZone.ToUtc Returns a DateTime value to the Utc time zone.
DateTimeZone.UtcNow Returns a DateTime value set to the current system date and time in the Utc timezone.
DateTimeZone.ZoneHours Gets the timezone hour of the value.
DateTimeZone.ZoneMinutes Gets the timezone minute of the value.
#datetimezone Creates a datetimezone value from year, month, day, hour, minute, second, offset-hours, and offset-minutes.