PosixTimeZone.getInstalledTZNames

string[] getInstalledTZNames(string subName = "", string tzDatabaseDir = getDefaultTZDatabaseDir()) @safe

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".

Parameters

subNameThe first part of the desired time zones.
tzDatabaseDirThe directory where the TZ Database files are located.

Throws

FileException if it fails to read from disk.