TimeZoneInfo (8.0)

Returns the value of the specified property of the local timezone.

Usage

@TimeZoneInfo(<PropertyName>, [<TimeFormat>])

Argument Name Description
PropertyName The name of the time-zone property. S[tandardName] The standard name of the local time-zone. UtcOffsetH[ours] The UTC offset in hours for the local time-zone. UtcOffsetM[inutes] The UTC offset in minutes for the local time-zone. T[oUniversalTime] The local time converted to UTC. I[sDaylightSavingTime] Whether DaylightSavingTime is in effect at the current time. DaylightN[ame] The standard name for DaylightSavingTime in the local time-zone. DaylightS[tart] The start date/time of DaylightSavingTime in the local time-zone. DaylightE[nd] The end date/time of DaylightSavingTime in the local time-zone. DaylightD[elta] The adjustment in hours for DaylightSavingTime in the local time-zone.
TimeFormat A custom format string or a standard format code. (default is G) Examples of custom format strings: (https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings) h:mm:ss.ff t 2019-06-30T15:29:58.26 -> 3:29:58.26 P d MMM yyyy 2019-06-30T15:29:58.26 -> 30 May 2019 HH:mm:ss.f 2019-06-30T15:29:58.26 -> 15:29:58.2 dd MMM HH:mm:ss 2019-06-30T15:29:58.26 -> 30 May 15:29:58 HH:mm:ss.ffff 2019-06-30T15:29:58.26 -> 15:29:58.2650 Standard format codes (examples are for en-US): (https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings) d Short date pattern. 2019-06-15T13:45:30 -> 6/15/2019 D Long date pattern. 2019-06-15T13:45:30 -> Monday, June 15, 2019 f Full date/time pattern (short time). 2019-06-15T13:45:30 -> Monday, June 15, 2019 1:45 PM F Full date/time pattern (long time). 2019-06-15T13:45:30 -> Monday, June 15, 2019 1:45:30 PM g General date/time pattern (short time). 2019-06-15T13:45:30 -> 6/15/2019 1:45 PM G General date/time pattern (long time). 2019-06-15T13:45:30 -> 6/15/2019 1:45:30 PM M, m Month/day pattern. 2019-06-15T13:45:30 -> June 15 O, o Round-trip date/time pattern. 2019-06-15T13:45:30 -> 2019-06-15T13:45:30.0000000-07:00 (Local) 2019-06-15T13:45:30 -> 2019-06-15T13:45:30.0000000Z (Utc) R, r RFC1123 pattern. 2019-06-15T13:45:30 -> Mon, 15 Jun 2019 20:45:30 GMT s Sortable date/time pattern. 2019-06-15T13:45:30 -> 2019-06-15T13:45:30 (Local) 2019-06-15T13:45:30 -> 2019-06-15T13:45:30 (Utc) t Short time pattern. 2019-06-15T13:45:30 -> 1:45 PM T Long time pattern. 2019-06-15T13:45:30 -> 1:45:30 PM u Universal sortable date/time pattern. 2019-06-15T13:45:30 -> 2019-06-15 13:45:30Z U Universal full date/time pattern. 2019-06-15T13:45:30 -> Monday, June 15, 2019 8:45:30 PM Y, y Year month pattern. 2019-06-15T13:45:30 -> June, 2019