help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Procedures and functions][Variables] Reference for unit 'oldlinux' (#rtl)

GetTimezoneFile

Return name of timezone information file

Declaration

Source position: oldlinux.pp line 1313

function GetTimezoneFile: String;

Description

GetTimezoneFile returns the location of the current timezone file. The location of file is determined as follows:

  1. If /etc/timezone exists, it is read, and the contents of this file is returned. This should work on Debian systems.
  2. If /usr/lib/zoneinfo/localtime exists, then it is returned. (this file is a symlink to the timezone file on SuSE systems)
  3. 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

ReadTimezoneFile

  

Read the timezone file and initialize time routines

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505