Commit Graph
25 Commits
Author SHA1 Message Date
Paul Eggert b90b803c05 Add FreeBSD-style -r option to 'date'.
* date.1: Document -r.
* date.c (main, usage): Support -r.
(main, reset): Remove EBUG code.
(display): New argument NOW.  Do not exit; that's now the
caller's responsibility.  All callers changed.
(display, timeout, convert, checkfinal, iffy):
Don't assume that localtime and gmtime succeed.
This prevents a core dump for, e.g., 'date -r 0xffffffffffffffff'.
* private.h: Include float.h.
(strtoimax): New macro, for pre-C99 systems that lack strtoimax.
(time_t_min, time_t_max): New constants, from zdump, with
different names to avoid a clash when zdump.c includes private.h.
2013-08-09 02:01:31 -07: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 8fd12bab6b public domain
SCCS-file: date.1
SCCS-SID: 8.2
2012-07-18 03:03:07 -04:00
Arthur David Olson 25d59c752c Eggert mods
SCCS-file: date.1
SCCS-SID: 7.4
2012-07-18 03:02:29 -04:00
Arthur David Olson d847a04a33 internationalization documentation
SCCS-file: date.1
SCCS-SID: 7.3
2012-07-18 03:02:15 -04:00
Arthur David Olson 4d58f978a0 groff glitch avoidance
SCCS-file: date.1
SCCS-SID: 7.2
2012-07-18 03:02:08 -04:00
Arthur David Olson 23b55d96a6 POSIX work
SCCS-file: date.1
SCCS-SID: 6.1
2012-07-18 03:02:04 -04:00
Arthur David Olson 7cb1e64d95 strftime %C change
SCCS-file: date.1
SCCS-SID: 2.14
2012-07-18 03:01:58 -04:00
Arthur David Olson 96641e4050 updated
SCCS-file: date.1
SCCS-SID: 2.13
2012-07-18 03:01:58 -04:00
Arthur David Olson ddfba5271d Guy notes
SCCS-file: date.1
SCCS-SID: 2.12
2012-07-18 03:01:58 -04:00
Arthur David Olson 38d79e7576 System V compatibility
SCCS-file: date.1
SCCS-SID: 2.11
2012-07-18 03:01:58 -04:00
Arthur David Olson ca2678b006 blank ends removed
SCCS-file: date.1
SCCS-SID: 2.10
2012-07-18 03:01:58 -04:00
Arthur David Olson 23210340da %c and %x change; hyphenization fix
SCCS-file: date.1
SCCS-SID: 2.9
2012-07-18 03:01:56 -04:00
Arthur David Olson dab5e5a145 specificity
SCCS-file: date.1
SCCS-SID: 2.8
2012-07-18 03:01:56 -04:00
Arthur David Olson bb21307f8a -a work
SCCS-file: date.1
SCCS-SID: 2.7
2012-07-18 03:01:55 -04:00
Arthur David Olson 4366d82cea more conditionalization
SCCS-file: date.1
SCCS-SID: 2.6
2012-07-18 03:01:55 -04:00
Arthur David Olson af6a3e7c56 -a
SCCS-file: date.1
SCCS-SID: 2.5
2012-07-18 03:01:55 -04:00
Arthur David Olson ca60c01c57 eighty column work
SCCS-file: date.1
SCCS-SID: 2.4
2012-07-18 03:01:55 -04:00
Arthur David Olson 29706d306b -D and -S go
SCCS-file: date.1
SCCS-SID: 2.2
2012-07-18 03:01:55 -04:00
Arthur David Olson 0c3a26eaf6 Step 1 in simplification
SCCS-file: date.1
SCCS-SID: 2.1
2012-07-18 03:01:55 -04:00
Arthur David Olson d579757208 Saudi footnote goes
SCCS-file: date.1
SCCS-SID: 2.3
2012-07-18 03:01:54 -04:00
Arthur David Olson e8c4714d73 bottom part cleaned up
SCCS-file: date.1
SCCS-SID: 1.4
2012-07-18 03:01:54 -04:00
Arthur David Olson cacc9882fb slight NOTE mod
SCCS-file: date.1
SCCS-SID: 1.3
2012-07-18 03:01:54 -04:00
Arthur David Olson ec26729982 first real version
SCCS-file: date.1
SCCS-SID: 1.2
2012-07-18 03:01:54 -04:00
Arthur David Olson 673e436360 created
SCCS-file: date.1
SCCS-SID: 1.1
2012-07-18 03:01:54 -04:00