1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2026-05-06 20:22:04 +00:00
Commit Graph

41 Commits

Author SHA1 Message Date
Paul Eggert
ce93b2490f * tzfile.5 (SEE ALSO): Mention zdump(8), zic(8). 2013-09-15 23:15:13 -05:00
Paul Eggert
a46793a95b Revert the change that added meta-information to version-3 format.
Further testing found that it was incompatible with Ubuntu 12.04 glibc
so this feature requires redesign and more testing.
* Makefile (ZFLAGS): Remove comment about name and version info.
Make it an empty var instead.
* tzfile.5, tzfile.h: Remove description of meta-information.
* zic.8: Remove options -n and -o.
* zic.c: Don't include <stddef.h>.
(genoption, genoptions, genname, addgenoption, writevalue): Remove.
(usage, main, writezone): Remove support for -n and -o.
2013-09-11 02:42:07 -07:00
Paul Eggert
fe2db73d5f Improve tzfile format as suggested by Zefram and Alan Barrett.
* tzfile.5: Be a bit more careful about wording for integers.
Use binary terminators for the byte strings, not newlines.
Add a size field.  Terminate by another NUL.  Mention where
future extensions are expected to go.
* zic.c (writezone): Implement this.
(addgenoption): Omit namelen check; no longer needed.
(writevalue): Remove.
2013-09-10 12:49:45 -07:00
Paul Eggert
d74d5b9500 * tzfile.5: Repeat the TZ string after the name-value pairs.
Suggested by Arthur David Olson in
<http://mm.icann.org/pipermail/tz/2013-September/020100.html>.
* zic.c (writezone): Implement this.
2013-09-09 22:32:56 -07:00
Paul Eggert
d7680ffd3d Add optional meta-information to version-3 format.
* Makefile (ZFLAGS): Add a comment about how to enable meta-info.
* tzfile.5: Describe meta-information.
* zic.8: Document new options -n and -o, which cause zic to
generate meta-info.
* zic.c: Include <stddef.h>, for ptrdiff_t.
(genoption, genoptions, genname): New static vars.
(usage): Summarize new options.
(addgenoption, writevalue): New function.
(main, writezone): Add support for new options.
2013-09-09 17:16:37 -07:00
Paul Eggert
27c15f3625 Bump tzfile format to version 3.
Also, improve the documentation and diagnostics in this area.
Suggested by Arthur David Olson in
<http://mm.icann.org/pipermail/tz/2013-September/020064.html>.
* tzfile.5, tzfile.h: Bump tzfile format to version 3.
* zic.8: Document -v better.
* zic.c (ZIC_VERSION): Bump from '2' to '3'.
(stringrule, stringzone, outzone): Report compatibility issues
more carefully, mentioning client dates.
2013-09-08 23:04:07 -07:00
Paul Eggert
30364485a6 Improve the support for perpetual DST.
Problem reported by Zefram in
<http://mm.icann.org/pipermail/tz/2013-September/020059.html>.
* localtime.c (tzparse): Elide simultaneous entries out of and
into DST if DST goes for an hour more than a year (actually, for
more than the DST offset more than a year).  Since this
optimization can elide all entries, avoid looping forever looking
for entries that will never arrive.  While we're at it, fix
another portability bug where the code assumed wraparound on
signed integer overflow.
* newtzset.3, tzfile.5: Mention that as an extension to POSIX,
if DST covers the entire year plus the DST offset, it's assumed to
be in effect all year.  Give an example.
* zic.c (stringrule): Omit the "J" in January and February,
as this can save a byte or two in the output.
(rule_cmp): New function.
(stringzone): Do a better job of constructing the standard-time
abbreviation when there is perpetual DST.  Defer to the new
stringrule to construct the times for perpetual DST.
Fix bug noted by Zefram, which caused a stray hour of standard
time to be inserted in an otherwise perpetual DST.
Previously, this code generated "WARST4WARST,J1/0,J365/24"
for the San Luis example; now it generates "WART4WARST,0/0,J365/25".
2013-09-08 19:16:32 -07:00
Paul Eggert
07351e0248 Support time stamps past 2038 in zones like America/Santiago.
This implements a suggestion by Arthur David Olson.
Without this change, zic -v diagnoses problems with several zones
where it cannot compute a POSIX-equivalent TZ setting for time
stamps past 2038, which means these time stamps may be mishandled.
This entails a minor change to the binary tz file format, to allow
a minor extension to the POSIX TZ setting in the binary file,
instead of requiring a pure POSIX TZ setting.  The zones fixed by
this change are America/Godthab, America/Santiago, Antarctica/Palmer,
Asia/Gaza, Asia/Hebron, Asia/Jerusalem, Pacific/Easter, and
Pacific/Fiji.  The only zone that remains unfixed is
Asia/Tehran, which schedules clock transitions via the
Iranian calendar, something that even the extended TZ
setting cannot represent.
* localtime.c (getrule): Allow transition times to be signed.
* newtzset.3: Describe the extensions to POSIX TZ strings.
Some of these extensions (e.g., hours == 26) were already
implemented but were not documented.  Give examples.
* tzfile.5: Document the relaxed restriction on the stored TZ
string; its hours component can be in the range -167..167 rather
than the POSIX-required 0..24.  Refer to newtzset(5).
* zic.c (stringoffset): Allow hours to go up to 167.
(stringrule): Be willing to generate hours in the range -167
through 167.
2013-09-05 18:28:08 -07:00
Paul Eggert
42801d2b1f Correct some UTC-vs-UT solecisms.
In several places the code and documentation incorrectly used
"UTC" to describe time stamps that might precede the introduction
of UTC and for which UTC is therefore undefined.  Change these
uses to "UT", as that's the correct term when talking about these
time stamps.  Problem reported by Steve Allen in
<http://mm.icann.org/pipermail/tz/2013-September/019907.html>.
The major compatibility issue here is with 'zdump -v'; it'll now
output "UT" instead of the possibly-incorrect "UTC".
Many files change in minor ways in the commentary.
* zdump.c (show):
* zic.c (inzsub, addtype):
In output, say "UT" rather than "UTC", since the time stamp we're
talking about might precede the introduction of UTC.
2013-09-04 19:07:31 -07:00
Paul Eggert
ef8095aaf8 Update documentation.
* tz-link.htm: Prune no-longer-working URLs, update URLs that got
moved, sort a bit.  The most-important casualty is the Norwegian
Meteorological Institute's web page for Summer time in Norway,
formerly at <http://met.no/met/met_lex/q_u/sommertid.html>: it's
no longer there and I can't find out where it moved to, if
anywhere.
* tzfile.5: Fix minor grammar problem.
2012-11-11 23:42:00 -08:00
Paul Eggert
dccd5a16af Switch from SCCS to git.
Remove the SCCS keyword '%W%' from all files.
Mostly this just remove comments.
Remove trailing white space, too.
* Makefile (TZCODE_VERSION): New macro.
(version.h): New rule.
(tzselect): Interpolate TZCODE_VERSION.
(clean): Remove version.h.
(zdump.o, zic.o): Depend on version.h.
* asctime.c, date.c, difftime.c, ialloc.c, localtime.c, scheck.c:
* strftime.c, zdump.c, zic.c: Remove elsieid.
* private.h: Remove privatehid.
* tzfile.h: Remove tzfilehid.
* tzselect.h (TZCODE_VERSION): Rename from VERSION.
* zdump.c, zic.c: Include "version.h",
and use TZCODE_VERSION instead of elsieid.
2012-07-18 17:30:38 -07:00
Arthur David Olson
6a9f077198 typo fix
SCCS-file: tzfile.5
SCCS-SID: 8.3
2012-07-18 03:03:08 -04:00
Arthur David Olson
8a79daf350 typo fixes
SCCS-file: tzfile.5
SCCS-SID: 8.2
2012-07-18 03:03:03 -04:00
Arthur David Olson
f9b8f165e8 64-bit version
SCCS-file: tzfile.5
SCCS-SID: 8.1
2012-07-18 03:02:55 -04:00
Arthur David Olson
1d83ab2d22 electronic mail addresses purged
SCCS-file: tzfile.5
SCCS-SID: 7.12
2012-07-18 03:02:51 -04:00
Arthur David Olson
209458eb5b slighthly modified Eggert mods
SCCS-file: tzfile.5
SCCS-SID: 7.11
2012-07-18 03:02:30 -04:00
Arthur David Olson
eabfaae47a Eggert mods
SCCS-file: tzfile.5
SCCS-SID: 7.10
2012-07-18 03:02:29 -04:00
Arthur David Olson
8d9bb10dc9 SCCS-file: tzfile.5
SCCS-SID: 7.9
2012-07-18 03:02:28 -04:00
Arthur David Olson
3d36969cf7 magic number
SCCS-file: tzfile.5
SCCS-SID: 7.8
2012-07-18 03:02:28 -04:00
Arthur David Olson
5a5dcb94d0 add seconds to time stamp
SCCS-file: tzfile.5
SCCS-SID: 7.7
2012-07-18 03:02:28 -04:00
Arthur David Olson
41ee9d6a07 SCCS-file: tzfile.5
SCCS-SID: 7.6
2012-07-18 03:02:28 -04:00
Arthur David Olson
4540831b44 convert dates
SCCS-file: tzfile.5
SCCS-SID: 7.5
2012-07-18 03:02:24 -04:00
Arthur David Olson
124a9a3cbd disclaimers
SCCS-file: tzfile.5
SCCS-SID: 7.4
2012-07-18 03:02:23 -04:00
Arthur David Olson
8259d4e7a1 work on allowing European rules as templates
SCCS-file: tzfile.5
SCCS-SID: 7.3
2012-07-18 03:02:17 -04:00
Arthur David Olson
25eb332c08 groff glitch avoidance
SCCS-file: tzfile.5
SCCS-SID: 7.2
2012-07-18 03:02:08 -04:00
Arthur David Olson
dd0477bd8a blank ends removed
SCCS-file: tzfile.5
SCCS-SID: 4.3
2012-07-18 03:01:58 -04:00
Arthur David Olson
db1c86cc87 standard/wall stuff
SCCS-file: tzfile.5
SCCS-SID: 4.2
2012-07-18 03:01:53 -04:00
Arthur David Olson
d41191da7b leap second words
SCCS-file: tzfile.5
SCCS-SID: 3.2
2012-07-18 03:01:45 -04:00
Arthur David Olson
9c262ec9a1 last minute stuff
SCCS-file: tzfile.5
SCCS-SID: 3.1
2012-07-18 03:01:44 -04:00
Arthur David Olson
9225a7d397 spelling fixes
SCCS-file: tzfile.5
SCCS-SID: 2.7
2012-07-18 03:01:43 -04:00
Arthur David Olson
766c82370b fixes from guy
SCCS-file: tzfile.5
SCCS-SID: 2.6
2012-07-18 03:01:43 -04:00
Arthur David Olson
ecb4dfbb75 minor mods
SCCS-file: tzfile.5
SCCS-SID: 2.5
2012-07-18 03:01:41 -04:00
Arthur David Olson
14dafc6c61 new handling of early times
SCCS-file: tzfile.5
SCCS-SID: 2.4
2012-07-18 03:01:40 -04:00
Arthur David Olson
d4106a3b34 just chars or longs in files
SCCS-file: tzfile.5
SCCS-SID: 2.3
2012-07-18 03:01:39 -04:00
Arthur David Olson
f57fd775be sun version + minor mods
SCCS-file: tzfile.5
SCCS-SID: 2.2
2012-07-18 03:01:38 -04:00
Arthur David Olson
a0ffa4e89d minor mod
SCCS-file: tzfile.5
SCCS-SID: 1.6
2012-07-18 03:01:36 -04:00
Arthur David Olson
0dcdfce628 file format change
SCCS-file: tzfile.5
SCCS-SID: 1.5
2012-07-18 03:01:35 -04:00
Arthur David Olson
d6727c611d minor reworking
SCCS-file: tzfile.5
SCCS-SID: 1.4
2012-07-18 03:01:35 -04:00
Arthur David Olson
197d344045 initial release
SCCS-file: tzfile.5
SCCS-SID: 1.3
2012-07-18 03:01:35 -04:00
Arthur David Olson
6f26e2e59e initial release
SCCS-file: tzfile.5
SCCS-SID: 1.2
2012-07-18 03:01:35 -04:00
Arthur David Olson
ad0693d582 created
SCCS-file: tzfile.5
SCCS-SID: 1.1
2012-07-18 03:01:34 -04:00