std.datetime.time_zone.get_time_zone
- multiple declarations
- Function TimeZone.getTimeZone
- Function TimeZone.getTimeZone
- Function TimeZone.getTimeZone
- Function TimeZone.getTimeZone
- Function TimeZone.getTimeZone
- Function TimeZone.getTimeZone
Function TimeZone.getTimeZone
Returns a .TimeZone
, TimeZone
with the give name
per the TZ Database.
This returns a PosixTimeZone
on Posix systems and a
WindowsTimeZone
on Windows systems. For
PosixTimeZone
on Windows, call
directly and give it the location of the TZ Database time zone files on
disk.
PosixTimeZone.getTimeZone
On Windows, the given TZ Database name
is converted to the corresponding
time zone name
on Windows prior to calling
. This function allows for
the same time zone names on both Windows and Posix systems.
WindowsTimeZone.getTimeZone
Prototype
static immutable(TimeZone) getTimeZone( string name ) @safe;
See Also
Wikipedia entry on TZ
Database
List of
Time Zones
Windows <-> TZ Database Name Conversion Table
Parameters
Name | Description |
---|---|
name | The TZ Database name of the desired time zone |
Throws
DateTimeException
if the given time zone could not be found.
Examples
auto tz = TimeZone.getTimeZone("America/Los_Angeles");
Function TimeZone.getTimeZone
Returns a .TimeZone
, TimeZone
with the give name
per the TZ Database.
This returns a PosixTimeZone
on Posix systems and a
WindowsTimeZone
on Windows systems. For
PosixTimeZone
on Windows, call
directly and give it the location of the TZ Database time zone files on
disk.
PosixTimeZone.getTimeZone
On Windows, the given TZ Database name
is converted to the corresponding
time zone name
on Windows prior to calling
. This function allows for
the same time zone names on both Windows and Posix systems.
WindowsTimeZone.getTimeZone
Prototype
static immutable(TimeZone) getTimeZone( string name ) @safe;
See Also
Wikipedia entry on TZ
Database
List of
Time Zones
Windows <-> TZ Database Name Conversion Table
Parameters
Name | Description |
---|---|
name | The TZ Database name of the desired time zone |
Throws
DateTimeException
if the given time zone could not be found.
Examples
auto tz = TimeZone.getTimeZone("America/Los_Angeles");
Function TimeZone.getTimeZone
Returns a .TimeZone
, TimeZone
with the give name
per the TZ Database.
This returns a PosixTimeZone
on Posix systems and a
WindowsTimeZone
on Windows systems. For
PosixTimeZone
on Windows, call
directly and give it the location of the TZ Database time zone files on
disk.
PosixTimeZone.getTimeZone
On Windows, the given TZ Database name
is converted to the corresponding
time zone name
on Windows prior to calling
. This function allows for
the same time zone names on both Windows and Posix systems.
WindowsTimeZone.getTimeZone
Prototype
static immutable(TimeZone) getTimeZone( string name ) @safe;
See Also
Wikipedia entry on TZ
Database
List of
Time Zones
Windows <-> TZ Database Name Conversion Table
Parameters
Name | Description |
---|---|
name | The TZ Database name of the desired time zone |
Throws
DateTimeException
if the given time zone could not be found.
Examples
auto tz = TimeZone.getTimeZone("America/Los_Angeles");
Function TimeZone.getTimeZone
Returns a .TimeZone
, TimeZone
with the give name
per the TZ Database.
This returns a PosixTimeZone
on Posix systems and a
WindowsTimeZone
on Windows systems. For
PosixTimeZone
on Windows, call
directly and give it the location of the TZ Database time zone files on
disk.
PosixTimeZone.getTimeZone
On Windows, the given TZ Database name
is converted to the corresponding
time zone name
on Windows prior to calling
. This function allows for
the same time zone names on both Windows and Posix systems.
WindowsTimeZone.getTimeZone
Prototype
static immutable(TimeZone) getTimeZone( string name ) @safe;
See Also
Wikipedia entry on TZ
Database
List of
Time Zones
Windows <-> TZ Database Name Conversion Table
Parameters
Name | Description |
---|---|
name | The TZ Database name of the desired time zone |
Throws
DateTimeException
if the given time zone could not be found.
Examples
auto tz = TimeZone.getTimeZone("America/Los_Angeles");
Function TimeZone.getTimeZone
Returns a .TimeZone
, TimeZone
with the give name
per the TZ Database.
This returns a PosixTimeZone
on Posix systems and a
WindowsTimeZone
on Windows systems. For
PosixTimeZone
on Windows, call
directly and give it the location of the TZ Database time zone files on
disk.
PosixTimeZone.getTimeZone
On Windows, the given TZ Database name
is converted to the corresponding
time zone name
on Windows prior to calling
. This function allows for
the same time zone names on both Windows and Posix systems.
WindowsTimeZone.getTimeZone
Prototype
static immutable(TimeZone) getTimeZone( string name ) @safe;
See Also
Wikipedia entry on TZ
Database
List of
Time Zones
Windows <-> TZ Database Name Conversion Table
Parameters
Name | Description |
---|---|
name | The TZ Database name of the desired time zone |
Throws
DateTimeException
if the given time zone could not be found.
Examples
auto tz = TimeZone.getTimeZone("America/Los_Angeles");
Function TimeZone.getTimeZone
Returns a .TimeZone
, TimeZone
with the give name
per the TZ Database.
This returns a PosixTimeZone
on Posix systems and a
WindowsTimeZone
on Windows systems. For
PosixTimeZone
on Windows, call
directly and give it the location of the TZ Database time zone files on
disk.
PosixTimeZone.getTimeZone
On Windows, the given TZ Database name
is converted to the corresponding
time zone name
on Windows prior to calling
. This function allows for
the same time zone names on both Windows and Posix systems.
WindowsTimeZone.getTimeZone
Prototype
static immutable(TimeZone) getTimeZone( string name ) @safe;
See Also
Wikipedia entry on TZ
Database
List of
Time Zones
Windows <-> TZ Database Name Conversion Table
Parameters
Name | Description |
---|---|
name | The TZ Database name of the desired time zone |
Throws
DateTimeException
if the given time zone could not be found.
Examples
auto tz = TimeZone.getTimeZone("America/Los_Angeles");
Authors
Jonathan M Davis and Kato Shoichi