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
Category | Functions |
---|---|
Time zones | TimeZone
UTC
LocalTime
PosixTimeZone
WindowsTimeZone
SimpleTimeZone
|
Utilities | clearTZEnvVar
parseTZConversions
setTZEnvVar
TZConversions
|
Functions
Name | Description |
---|---|
clearTZEnvVar()
|
This function is Posix-Only. |
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. |
setTZEnvVar(tzDatabaseName)
|
This function is Posix-Only. |
Classes
Name | Description |
---|---|
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 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
Name | Description |
---|---|
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
License
Copyright © 1999-2018 by the D Language Foundation | Page generated by ddox.