std.datetime.time_zone.get_installed_tz_names
- multiple declarations
- Function TimeZone.getInstalledTZNames
- Function TimeZone.getInstalledTZNames
- Function TimeZone.getInstalledTZNames
- Function TimeZone.getInstalledTZNames
- Function TimeZone.getInstalledTZNames
- Function TimeZone.getInstalledTZNames
Function TimeZone.getInstalledTZNames
Returns a list of the names of the time zones installed on the system.
Providing a sub-name
narrows down the list of time zones (which
can number in the thousands). For example,
passing in "America" as the sub-name
returns only the time zones which
begin with "America".
On Windows, this function will convert the Windows time zone names to
the corresponding TZ Database names with
. To get the actual Windows time
zone names, use windowsTZNameToTZDatabaseName
directly.
WindowsTimeZone.getInstalledTZNames
Prototype
static string[] getInstalledTZNames( string subName = "" ) @safe;
Parameters
Name | Description |
---|---|
subName | The first part of the time zones desired. |
Throws
FileException
on Posix systems if it fails to read from disk.
DateTimeException
on Windows systems if it fails to read the
registry.
Function TimeZone.getInstalledTZNames
Returns a list of the names of the time zones installed on the system.
Providing a sub-name
narrows down the list of time zones (which
can number in the thousands). For example,
passing in "America" as the sub-name
returns only the time zones which
begin with "America".
On Windows, this function will convert the Windows time zone names to
the corresponding TZ Database names with
. To get the actual Windows time
zone names, use windowsTZNameToTZDatabaseName
directly.
WindowsTimeZone.getInstalledTZNames
Prototype
static string[] getInstalledTZNames( string subName = "" ) @safe;
Parameters
Name | Description |
---|---|
subName | The first part of the time zones desired. |
Throws
FileException
on Posix systems if it fails to read from disk.
DateTimeException
on Windows systems if it fails to read the
registry.
Function TimeZone.getInstalledTZNames
Returns a list of the names of the time zones installed on the system.
Providing a sub-name
narrows down the list of time zones (which
can number in the thousands). For example,
passing in "America" as the sub-name
returns only the time zones which
begin with "America".
On Windows, this function will convert the Windows time zone names to
the corresponding TZ Database names with
. To get the actual Windows time
zone names, use windowsTZNameToTZDatabaseName
directly.
WindowsTimeZone.getInstalledTZNames
Prototype
static string[] getInstalledTZNames( string subName = "" ) @safe;
Parameters
Name | Description |
---|---|
subName | The first part of the time zones desired. |
Throws
FileException
on Posix systems if it fails to read from disk.
DateTimeException
on Windows systems if it fails to read the
registry.
Function TimeZone.getInstalledTZNames
Returns a list of the names of the time zones installed on the system.
Providing a sub-name
narrows down the list of time zones (which
can number in the thousands). For example,
passing in "America" as the sub-name
returns only the time zones which
begin with "America".
On Windows, this function will convert the Windows time zone names to
the corresponding TZ Database names with
. To get the actual Windows time
zone names, use windowsTZNameToTZDatabaseName
directly.
WindowsTimeZone.getInstalledTZNames
Prototype
static string[] getInstalledTZNames( string subName = "" ) @safe;
Parameters
Name | Description |
---|---|
subName | The first part of the time zones desired. |
Throws
FileException
on Posix systems if it fails to read from disk.
DateTimeException
on Windows systems if it fails to read the
registry.
Function TimeZone.getInstalledTZNames
Returns a list of the names of the time zones installed on the system.
Providing a sub-name
narrows down the list of time zones (which
can number in the thousands). For example,
passing in "America" as the sub-name
returns only the time zones which
begin with "America".
On Windows, this function will convert the Windows time zone names to
the corresponding TZ Database names with
. To get the actual Windows time
zone names, use windowsTZNameToTZDatabaseName
directly.
WindowsTimeZone.getInstalledTZNames
Prototype
static string[] getInstalledTZNames( string subName = "" ) @safe;
Parameters
Name | Description |
---|---|
subName | The first part of the time zones desired. |
Throws
FileException
on Posix systems if it fails to read from disk.
DateTimeException
on Windows systems if it fails to read the
registry.
Function TimeZone.getInstalledTZNames
Returns a list of the names of the time zones installed on the system.
Providing a sub-name
narrows down the list of time zones (which
can number in the thousands). For example,
passing in "America" as the sub-name
returns only the time zones which
begin with "America".
On Windows, this function will convert the Windows time zone names to
the corresponding TZ Database names with
. To get the actual Windows time
zone names, use windowsTZNameToTZDatabaseName
directly.
WindowsTimeZone.getInstalledTZNames
Prototype
static string[] getInstalledTZNames( string subName = "" ) @safe;
Parameters
Name | Description |
---|---|
subName | The first part of the time zones desired. |
Throws
FileException
on Posix systems if it fails to read from disk.
DateTimeException
on Windows systems if it fails to read the
registry.
Authors
Jonathan M Davis and Kato Shoichi