GetTimezoneFile
Return name of timezone information file.
Declaration
Source position: unix.pp line 110
function GetTimezoneFile: string; |
Description
GetTimezoneFile returns the location of the current timezone file. The location of file is determined as follows:
- If /etc/timezone exists, it is read, and the contents of this file is returned. This should work on Debian systems.
- If /usr/lib/zoneinfo/localtime exists, then it is returned. (this file is a symlink to the timezone file on SuSE systems)
- If /etc/localtime exists, then it is returned. (this file is a symlink to the timezone file on RedHat systems)
Errors
If no file was found, an empty string is returned.
See also