PosixTimeZone.getTimeZone

immutable(PosixTimeZone) getTimeZone(string name, string tzDatabaseDir = getDefaultTZDatabaseDir()) @trusted

Returns a TimeZone with the give name per the TZ Database. The time zone information is fetched from the TZ Database time zone files in the given directory.

See Also

Wikipedia entry on TZ

Database

List of

Time Zones

Parameters

nameThe TZ Database name of the desired time zone
tzDatabaseDirThe directory where the TZ Database files are located. Because these files are not located on Windows systems, provide them and give their location here to use PosixTimeZones.

Throws

DateTimeException if the given time zone

could not be found or FileException if the TZ Database file could not be opened.