Sign in Join
FPDoc Onlineexperiment

ReReadLocalTime procedure

In unit Unix

Re-Read the local time files.

Declaration

pascal
procedure ReReadLocalTime

Description

ReReadLocalTime can be used to re-initialize the local timezone information.

To speed up conversion of epoch (UTC) time to local time, the timezone information is loaded only once, at program startup. Calling this routine re-reads the timezone information using current timezone settings.

The EpochToLocal function uses timezone information to transform epoch time to local time. This timezone information does not change while the application is running: in particular, on DST transitions or when the timezone files change, the time returned by local time routines will be wrong.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.