GetTimezoneFile function
Return name of timezone information file.
Declaration
function GetTimezoneFile: stringDescription
GetTimezoneFile returns the location of the current timezone file.
The location of file is determined as follows:
- If
/etc/timezoneexists, it is read, and the contents of this file is returned. This should work on Debian systems. - If
/usr/lib/zoneinfo/localtimeexists, then it is returned. (this file is a symlink to the timezone file on SuSE systems) - If
/etc/localtimeexists, 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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
