Commit Graph

54 Commits

Author SHA1 Message Date
uwe a2db434eb1 date(1): sync two [[[[[CC]yy]mm]dd]HH]MM[.SS] instances
The markup was the same (modulo Li vs Cm for the dot before the
seconds), but use the same source markup grouping/layout in both to
make this fact more obvious.
2023-05-31 18:04:00 +00:00
uwe 8710cd3b8d date(1): minor markup fixes 2023-05-31 17:52:02 +00:00
kim 04f2a3c19d Add -R option for displaying time in RFC 5322 format, similar to GNU date. 2023-05-31 16:01:53 +00:00
christos 9337b5ddea Add -f option to set the time. From FreeBSD. 2022-10-22 20:11:43 +00:00
uwe 0a751ce1a9 date(1): Use .Dl for one-liners. Same output is generated. 2022-05-10 09:07:57 +00:00
uwe 7638fb4e20 date(1): Fix the offset in previous. 2022-05-10 09:00:39 +00:00
wiz 8147634961 date(1): add example for how to get seconds since the Epoch output 2022-05-10 05:37:33 +00:00
wiz e793fb4654 Remove trailing whitespace and Tn macro. 2018-01-27 18:59:38 +00:00
christos a61f9804b8 sync with tzcode-2018c 2018-01-25 18:07:17 +00:00
wiz 01869ca4d2 Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
abhinav 1bd07c5d11 The range of the SS field is [0,60]
From the POSIX time.h man page:
"The formal definition of UTC does not permit double leap seconds, so all mention of double leap seconds has been removed, and the range shortened from the former [0,61] seconds seen in previous versions of POSIX."
2017-01-03 16:01:05 +00:00
sevan 72d159d520 Document the version date first appeared.
Bump date.
2016-08-11 00:38:06 +00:00
wiz c27272249b - fix timed(8) references;
- fix capitalization;
- add reference to environ(7) in `SEE ALSO' section, as it is
  mentioned in the text.

From patch by Bug Hunting.
2012-04-06 11:36:56 +00:00
wiz e3da56d760 Remove trailing whitespace. 2010-02-04 22:56:11 +00:00
reed c0410f482f For the -d option, refer to parsedate(3) for examples. 2010-02-04 19:25:22 +00:00
reed 81a4d4f0b0 Show that "seconds" is the expected argument for -r.
(I didn't bump the manual page date for this minor change. If I
should let me know.)
2009-01-30 13:16:16 +00:00
wiz 1730a98675 Drop trailing whitespace. 2006-11-26 16:40:44 +00:00
christos ab56b9a702 getdate -> parsedate 2006-11-20 20:33:33 +00:00
christos aa62ece776 Add -d option, similar to gnu date. 2006-11-15 16:55:18 +00:00
jdarrow 5d27a9d665 Add -j flag to not actually change the clock, just parse the date given
(if any) and then display it in the format given.  Matches similar -j
flag functionality in FreeBSD/OpenBSD.

Change requested by George Georgalis on netbsd-users.

While I'm here, disambiguate the letters in the date string, by using
the same option letters as used by strftime(3).
2006-11-15 03:10:01 +00:00
dsl a7151c0abc Add a '-a' option to set the time using adjtime(2) instead of settimeofday(2).
Fix usage so that the options which apply to dat/time setting are on the
correct line.
2005-04-18 06:53:35 +00:00
agc b5b2954259 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22249, verified by myself.
2003-08-07 09:05:01 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz 14dfaa4b03 New policy: New sentences start on a new line.
Patches by Robert Elz <kre at munnari oz au>, with minimal changes by me.
2002-09-25 15:18:36 +00:00
ross dc5571b22e Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
wiz 22f1ac50a6 Sort sections. 2001-12-20 20:04:19 +00:00
wiz 3ebcdc5e43 Whitespace nits. 2001-12-20 19:31:48 +00:00
hubertf bb6b8354d9 xref settimeofday(2) 2001-03-09 15:16:49 +00:00
hubertf 84a116117c Document /etc/localtime, per PR 8099 by Charles Hannum. 2000-12-18 07:57:02 +00:00
bjh21 080f6953ea Formatting cleanup: more fonts, less punctuation. 2000-10-08 11:02:41 +00:00
hubertf 6f51bb4732 make example cut&paste-ready 1999-12-29 04:11:30 +00:00
ross 6fe4eb2696 Work around a spurious warning. 1999-03-09 03:02:40 +00:00
lukem a7881b9570 remove unnecessary comment 1998-06-08 09:07:13 +00:00
mycroft c7273dc993 Make the documented parsing order for the date match reality. 1998-01-20 21:47:43 +00:00
mycroft 0166097d26 Fix documentation of `-r'. 1998-01-20 21:34:53 +00:00
mycroft f9a6471ec7 Allow a century to be specified.
Cut and paste some text from touch(1) about date parsing.
1998-01-20 21:16:38 +00:00
kleink 64c0cead8c s/UCT/UTC/ 1997-11-03 18:42:49 +00:00
enami c3872193cf Fix .Nm usage. 1997-10-20 08:50:59 +00:00
mikel bd361a3aba fix broken timed(8) xrefs, noted by David Brownlee. 1997-05-11 08:34:37 +00:00
perry 15d0dbe011 Add documentation of the fact that date does indeed understand years
after 2000 (years 00 through 68 are interpreted as meaning 2000-2068;
this should be updated sometime before 2068 :-)
1997-03-11 23:43:41 +00:00
perry b195ec73d5 nuke the BUGS section -- it was vax specific 1997-01-25 00:17:00 +00:00
perry 61974fdce1 remove obsolete -d and -t options -- kernel timezone handling is long gone 1997-01-24 18:17:17 +00:00
phil 3e4d50990e a a => a (close pr 2204). 1996-03-12 04:32:37 +00:00
jtc 9a3ca97f12 ENVIRONMENTAL -> ENVIRONMENT 1995-12-05 02:41:35 +00:00
jtc 5fc5415e25 Sync with 4.4lite2 1995-09-07 06:12:53 +00:00
jtc 23e6aab105 Use "utility" instead of "command". Modern definitions of these terms
are distinct (See POSIX.2 glossary).

A utility is a executable, script or shell builtin; while a command
can be any of those things plus lists, pipelines, compound commands
(if, for, while) and shell function definitions.
1995-07-25 19:36:36 +00:00
cgd 49f0ad8601 convert to new RCS id conventions. 1995-03-21 09:01:59 +00:00
mycroft 667b5ea158 Merge 4.4-Lite version. 1994-09-22 09:24:46 +00:00
jtc a5960e1999 Print correct default output format.
Note that date (with a suitable strftime()), is 1003.2 compliant.
1993-08-19 17:02:40 +00:00
jtc 7bab32a746 1003.2: 4.15.4: The output always shall be terminated by a newline character. 1993-08-16 23:08:51 +00:00