The OpenD Programming Language

WindowsTimeZone.getTimeZone

Returns a TimeZone with the given name per the Windows time zone names. The time zone information is fetched from the Windows registry.

class WindowsTimeZone
static @safe
immutable(WindowsTimeZone)
getTimeZone
(
string name
)

Parameters

name string

The TZ Database name of the desired time zone.

Throws

std.datetime.date.DateTimeException if the given time zone could not be found.

Examples

auto tz = WindowsTimeZone.getTimeZone("Pacific Standard Time");

See Also

Meta