View source code
Display the source code in std/datetime/timezone.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Module std.datetime.timezone

Functions

NameDescription
clearTZEnvVar() This function is Posix-Only.
parseTZConversions(windowsZonesXMLText) Provides the conversions between the IANA time zone database time zone names (which POSIX systems use) and the time zone names that Windows uses.
setTZEnvVar(tzDatabaseName) This function is Posix-Only.

Classes

NameDescription
LocalTime A TimeZone which represents the current local time zone on the system running your program.
PosixTimeZone Represents a time zone from a TZ Database time zone file. Files from the TZ Database are how Posix systems hold their time zone information. Unfortunately, Windows does not use the TZ Database. To use the TZ Database, use PosixTimeZone (which reads its information from the TZ Database files on disk) on Windows by providing the TZ Database files and telling PosixTimeZone.getTimeZone where the directory holding them is.
SimpleTimeZone Represents a time zone with an offset (in minutes, west is negative) from UTC but no DST.
TimeZone Represents a time zone. It is used with SysTime to indicate the time zone of a SysTime.
UTC A TimeZone which represents UTC.
WindowsTimeZone This class is Windows-Only.

Structs

NameDescription
TZConversions Provides the conversions between the IANA time zone database time zone names (which POSIX systems use) and the time zone names that Windows uses.

Authors

Jonathan M Davis

License

Boost License 1.0.