1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-11-21 00:34:46 +00:00
Commit Graph

22 Commits

Author SHA1 Message Date
8f58b53628 Fiji observes DST from 2014-11-02 02:00 to 2015-01-18 03:00.
(Thanks to Ken Rylander for the heads-up.)
* australasia (Fiji): Assume Nov Sun>=1 2:00 to Jan Sun>=18 3:00
from here on out.
* newtzset.3: Adjust Fiji example to match current assumptions.
* NEWS: Document this.
2014-10-20 17:31:00 -07:00
e0c11579ca * australasia (Pacific/Fiji), NEWS: Guess no DST this year.
* newtzset.3: Mention that the Fiji example is obsolete.

(Thanks to Ken Rylander for the heads-up.)
2014-10-14 18:41:12 -07:00
2423b5b4a3 Add documentation for the core NetBSD-inspired functions.
Lack of documentation reported by Jonathan Lennox in:
http://mm.icann.org/pipermail/tz/2014-August/021529.html
* newtzset.3: Document tzalloc and tzfree.
* newctime.3: Document localtime_rz and mktime_z.
* NEWS: Mention this.
2014-08-26 14:17:32 -07:00
649397ecb4 Document thread-safe functions in man pages.
* NEWS, newctime.3, newstrftime.3, newtzset.3, time2posix.3:
Mention localtime_r etc.  Also, use function prototypes rather
than K&R style, and use 'restrict' where POSIX does.
2014-08-25 08:20:52 -07:00
468555e32d Fix glitches with '-' and italics in man pages.
Using '\-' to denote ASCII minus has problems in groff output, since
it generates a minus sign in the current font, and if you cut and
paste from the documentation the resulting text won't work.  To avoid
the problem, define a string \*- that expands to ASCII minus in a
constant-width font in groff.  Also, change some instances of \(mi and
\(pl to use plain \- and +, since we no longer need special fonts for
these.  Finally, remove some no-longer-needed instances of "\^" after
italicized words.
2014-06-28 16:37:21 -07:00
8f065f5aa9 * asctime.c, newctime.3, newtzset.3: Don't imply ASCII is required. 2014-06-28 14:09:32 -07:00
9a8aa790bc Don't abuse "`" to mean open quote.
This was appropriate before Unicode, where "`" and "'" often balanced
in visual output, but that's been obsolete for a while.
Overall, single-quote 'like this' instead of `like this', and
double-quote "like this" or (in typeset output) “like this”
instead of ``like this''.  While we're at it, fix some glitches
with hyphens versus minus versus en dash versus em dash.
* Makefile ($(MANTXTS)): Use UTF-8 locale to produce *.txt output.
* checktab.awk, tzselect.ksh:
Quote 'like this' in diagnostics, instead of `like this'.
* date.1, newctime.3, newtzset.3, time2posix.3, zic.8 (q, lq, rq):
New macros.  Use them for better double-quoting in output.
* workman.sh: Tell Perl that its stdin and stdout are UTF-8.
* NEWS: Document this.
2014-06-15 13:27:37 -07:00
3f0f945c17 Fix Tuesday/Thursday typo in tzset man page.
* newtzset.3 (DESCRIPTION), NEWS: Fix typo in description of Israel time.
Reported by Mike Frysinger for glibc in:
https://sourceware.org/ml/libc-alpha/2014-03/msg00326.html
2014-03-13 17:30:17 -07:00
ba0a5b4708 * newtzset.3: Capitalize more consistently. 2013-09-21 08:35:26 -07:00
8ee0fbebc6 Reflect Fiji DST change planned for October.
Reported by David Wheeler in
<http://mm.icann.org/pipermail/tz/2013-September/020083.html>.
* australasia (Fiji): Tweak spring-forward transitions to match
timeanddate.com's predictions.
* newtzset.3: Adjust Fiji example to match updated predictions.
Reword examples so that the English descriptions are more
consistent and are roughly in the same order as the TZ string
contents.
2013-09-09 12:39:51 -07:00
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
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
0729dfdfa0 * newtzset.3: Fix misspelling of "newctime" in previous patch. 2013-09-05 07:07:58 -07:00
10a38b7ee2 * newctime.3, newstrftime.3, newtzset.3, zdump.8: Explain UT vs UTC better.
Suggested by Steve Allen in
<http://mm.icann.org/pipermail/tz/2013-September/019924.html>.
2013-09-05 07:03:28 -07:00
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
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
d5b890fc48 public domain
SCCS-file: newtzset.3
SCCS-SID: 8.2
2012-07-18 03:03:07 -04:00
4301918405 libz -> libtz; -lz -> -ltz
SCCS-file: newtzset.3
SCCS-SID: 7.5
2012-07-18 03:02:27 -04:00
eefb053284 newstrftime work
SCCS-file: newtzset.3
SCCS-SID: 7.4
2012-07-18 03:02:21 -04:00
15e3a08de7 groff glitch avoidance
SCCS-file: newtzset.3
SCCS-SID: 7.3
2012-07-18 03:02:08 -04:00
4a785d6973 first pass
SCCS-file: newtzset.3
SCCS-SID: 7.2
2012-07-18 03:02:08 -04:00
743126d5fc created
SCCS-file: newtzset.3
SCCS-SID: 7.1
2012-07-18 03:02:08 -04:00