About
"Where do I set the hands of the clock?" -- Les Tremayne as The King
"Oh that--you can set them any place you want."
-- Frank Baxter as The Scientist
(from the Bell System film "About Time")
The Time Zone Database (called tz, tzdb or zoneinfo) contains code and
data that represent the history of local time for many representative
locations around the globe. It is updated periodically to reflect
changes made by political bodies to time zone boundaries, UTC offsets,
and daylight-saving rules.
Installation
* Copy tz.library to LIBS:
* Copy content of tzdata.lha to Locale:Time
* Copy your time zone file to Envarc:Localetime
* Consider to set the TZ or tz.prefs environment variable
* Optionally validate installation with regression test tool
Library content
time.h
tzset, tzalloc, tzfree, time, mktime, mktime_z, localtime, localtime_r,
localtime_rz, gmtime, gmtime_r, ctime, ctime_r, ctime_rz, difftime,
offtime, offtime_r, timeoff, asctime, asctime_r, strftime, strftime_l,
strptime, strptime_l, timegm, timelocal, timelocal_z, daylight_c,
timezone_c, altzone_c, tzname_c, time2posix, time2posix_z, posix2time,
posix2time_z, tzsetwall, tzgetname
sys/time.h
gettimeofday, settimeofday
tz.h
GetTime, SetTimezone, AllocTimezone, FreeTimezone, GetLocalTime,
GetGmtTime, Gmt2Amiga, Local2Amiga, CurrentTimeGmt, Local2Str,
Time2Str, Time2RFC3339, Time2RFC2822, Time2RFC822, FormatTime,
ParseTime, DiffTime, TimeOff, OffTime, GetSystemTime, SetSystemTime,
AmigaLocalTime, AllocTimeLocale, FreeTimeLocale, GetTimeLocaleStr,
FormatDateTm, ParseDateTm, Amiga2Tm, ClockTime2Tm, Tm2ClockTime,
Tm2Amiga, Unix2Amiga, Amiga2Unix, Tm2DateStamp, DateStamp2Tm,
Unix2DateStamp, DateStamp2Unix, Tm2Date, Date2Tm, Date2Unix,
Unix2Date, tzgetlocation, GmtOffset, stou, utos
Applications
Date and time utilities (util/time/tzutils7 package)
Date - Display date and time.
DSTCheck - Check if DST is present.
ISO8601 - Show current date and time. Use ISO 8601 output format.
RFC3339 - Show date and time in RFC 3339 format.
Sntptz - Get date and time using a NTP server.
TimeZone - Set locale time zone from location.
TimeZoneInfo - Show various parameters for locale time zone.
TimeZoneVersion - Show details about installed version of tz.library.
ZDump - Display current date and time in other time zones.
Example programs
date1, date2, gmtime, localtime, nyc, strftime, strftime2,
strptime, time, adjust
Localization
ISO-8859-2 languages are supported through charset such as the
Xseries fonts with glyphs in ISO-8859-2 package from aminet:
http://aminet.net/package/text/bfont/XFonts_iso-8859-2
Changes in 8.20
- Synced code to tz release 2020a.
- New AmigaOS friendly library functions.
- Changed time zone file directory to Locale:Time.
|