aboutsummaryrefslogtreecommitdiff
path: root/bin/date/date.1
Commit message (Collapse)AuthorAgeFilesLines
* date.1: note possibly surprising behaviour of -j -fEd Maste2020-08-261-1/+4
| | | | | | | | | PR: 248918 MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=364790
* Restore the -n flag parsing, but ignore it.Warner Losh2019-04-241-2/+4
| | | | | | | | | | Since D19668 was done, new users of the -n flag have surfaced. Parse and ignore it on the command line until they can be updated. Suggested by: rgrimes (in D19668). Notes: svn path=/head/; revision=346624
* Remove -n flag, fix setting date / timeWarner Losh2019-03-211-33/+5
| | | | | | | | | | r342139 bork setting the date. This fixes it by simply removing the -n flag. Differential Revision: https://reviews.freebsd.org/D19668 Notes: svn path=/head/; revision=345365
* Remove the -d and -t flags from the man pageWarner Losh2019-03-121-21/+1
| | | | | | | | | Remove -d and -t flags that were removed in r345050. Noticed by: rgrimes@ Notes: svn path=/head/; revision=345081
* date(1): Add ISO 8601 formatting optionConrad Meyer2018-08-041-2/+67
| | | | | | | | The new flag is named '-I'. It is documented in the manual page and covered by basic unit tests. Notes: svn path=/head/; revision=337332
* Update other man pages to match leap second realityConrad Meyer2018-06-011-3/+3
| | | | | | | | | | | Missed these in r334501; see justification there: https://svnweb.freebsd.org/base?view=revision&revision=334501 Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=334502
* Fix mandoc -Tlint warnings in bin/Benjamin Kaduk2017-12-071-1/+2
| | | | | | | | | | | Many style-level issues are still reported. Submitted by: Yuri Pankov <yuripv@gmx.com> Reviewed by: jilles (previous revision) Differential Revision: https://reviews.freebsd.org/D13334 Notes: svn path=/head/; revision=326651
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* date(1): Make -r behave like GNU's version when the option can not beXin LI2015-05-071-2/+5
| | | | | | | | | | | | interpreted as a number, which checks the file's modification time and use that as the date/time value. This improves compatibility with GNU coreutils's version of time(1). MFC after: 2 weeks Notes: svn path=/head/; revision=282608
* date(1): Forgot to update manpage date in r264968Jean-Sébastien Pédron2014-04-261-1/+1
| | | | | | | | MFC after: 1 week MFC with: 264968 Notes: svn path=/head/; revision=264970
* date(1): Add "-R" flag to use RFC 2822 date and time output formatJean-Sébastien Pédron2014-04-261-2/+12
| | | | | | | | | | As stated in the man page, this is equivalent to use "%a, %d %b %Y %T %z" as the output format while LC_TIME is set to the "C" locale. This is compatible with date(1) from the GNU core utilities. Notes: svn path=/head/; revision=264968
* Explain that setting an absolute day value can fail and that the month shouldBrian Somers2010-06-041-3/+11
| | | | | | | | | | | | | usually be set first when using -v. Adjust an example that sets the day to 30 before setting the month to 3 in accordance with this approach as the example would always fail in February! PR: 147354 MFC after: 2 weeks Notes: svn path=/head/; revision=208795
* Remove stale references to utmp(5) and its corresponding filenames.Ed Schouten2010-01-211-2/+2
| | | | | | | I removed utmp and its manpage, but not other manpages referring to it. Notes: svn path=/head/; revision=202756
* Correct the referenced securelevel document, it's now securelevel 7.Remko Lodder2007-06-021-2/+2
| | | | | | | Pointed out by: ru Notes: svn path=/head/; revision=170215
* -mdoc sweep.Ruslan Ermilov2005-11-171-6/+1
| | | | Notes: svn path=/head/; revision=152547
* Note which options are not part of the standards.Tom Rhodes2005-11-011-1/+12
| | | | | | | | | | Xref locale(1) and bump document date. Reviewed by: keramida No Objections: -standards Notes: svn path=/head/; revision=151933
* Expand *n't contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141846
* Add the new standard EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-161-38/+38
| | | | | | | Sort standard sections in the (documented) preferred order. Notes: svn path=/head/; revision=140353
* /*- or .\"- or #- to begin license clauses.Warner Losh2005-01-101-0/+1
| | | | Notes: svn path=/head/; revision=139969
* Scheduled mdoc(7) sweep.Ruslan Ermilov2005-01-091-2/+2
| | | | Notes: svn path=/head/; revision=139943
* Change the behaviour of `-v' so that, e.g., stepping a month backYaroslav Tykhiy2004-08-091-1/+23
| | | | | | | | | | | | | | | | | | | | on March 31 won't take you to March 2 or 3 (now the result will be the last day of February.) In general, now stepping by months from the last days of the current month A will take you to the very last day of the target month B if B is shorter than A. The previous version would just step to March 31 and rely on mktime(3) to correct the date. Despite its simplicity, such way was counter-intuitive to users and caused pain to shell script writers. Noticed by: Igor Timkin <ivt at gamma dot ru> Approved by: brian MFC after: 2 weeks Notes: svn path=/head/; revision=133381
* Give the most awesome example of how to parse the output of dateAlfred Perlstein2004-07-171-0/+8
| | | | | | | | | back into epoch time. Everytime I'm asked to do this by someone I have to spend about ten minutes recreating the same command line. So record it under examples. Notes: svn path=/head/; revision=132272
* Deal with double whitespace.Ruslan Ermilov2004-07-031-3/+5
| | | | Notes: svn path=/head/; revision=131505
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-1/+1
| | | | Notes: svn path=/head/; revision=131484
* DESCRIPTION was not updated for the new SYNOPSIS.Ruslan Ermilov2004-05-161-6/+7
| | | | Notes: svn path=/head/; revision=129294
* Give date(1) a much better SYNOPSIS section which is useful as more thanBrian Feldman2004-04-061-9/+13
| | | | | | | | | | decoration. Further improvements are welcome, but at least this is a separate of the various modes of operation date has, as well as sectioning off the two deprecated options for settimeofday(tz) that don't even apply to actual operation of date as such, anyway. Notes: svn path=/head/; revision=127964
* Remove clause 3 from the UCB licenses.Mark Murray2004-04-061-4/+0
| | | | | | | OK'ed by: imp, core Notes: svn path=/head/; revision=127958
* Note the Linux required format.David E. O'Brien2004-01-061-0/+1
| | | | Notes: svn path=/head/; revision=124185
* mdoc(7) police: markup laundry.Ruslan Ermilov2003-02-231-31/+22
| | | | Notes: svn path=/head/; revision=111285
* Add an example to help one manually set the date on one machine taking the outDavid E. O'Brien2003-02-181-0/+5
| | | | | | | put from another. Notes: svn path=/head/; revision=111104
* Fix some twelve hour clock braindamage. The range for hours is 0-23 not 1-12.Tony Finch2002-10-031-1/+1
| | | | | | | MFC After: 1 week Notes: svn path=/head/; revision=104410
* s/CMOS/hardware as talked about on cvs-committers.Tom Rhodes2002-04-161-1/+1
| | | | | | | | | Suggested by: sheldonh Approved by: bde MFC after: 1 day Notes: svn path=/head/; revision=94850
* Little nit pick in date(1) manual page, tell users which clock date(1)Tom Rhodes2002-04-151-0/+6
| | | | | | | | | sets PR: 35606 Notes: svn path=/head/; revision=94787
* mdoc(7) police:Ruslan Ermilov2001-08-071-15/+11
| | | | | | | | | | Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text. Not only this slows down the mdoc(7) processing significantly, but it also has an undesired (in this case) effect of disabling hyphenation within the entire enclosed block. Notes: svn path=/head/; revision=81251
* Remove whitespace at EOL.Dima Dorfman2001-07-151-3/+3
| | | | Notes: svn path=/head/; revision=79754
* Simplify, with the power of new mdoc(7).Ruslan Ermilov2001-06-091-9/+3
| | | | Notes: svn path=/head/; revision=77940
* Make it clear that the -v option doesn't actually set the date.Dima Dorfman2001-03-161-2/+3
| | | | | | | | PR: 24773 Approved by: nik Notes: svn path=/head/; revision=74320
* Document the restrictions on changing times in high securelevels.Ben Smithurst2001-01-171-1/+5
| | | | | | | | PR: 23502 Submitted by: Robert Boyd <rboyd@pokerspot.com> Notes: svn path=/head/; revision=71195
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-191-1/+1
| | | | Notes: svn path=/head/; revision=70190
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-151-16/+30
| | | | Notes: svn path=/head/; revision=70056
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-2/+2
| | | | Notes: svn path=/head/; revision=68935
* Try to clean the manpage up according to the mail from SheldonJohn W. De Boskey2000-07-281-5/+6
| | | | | | | | | | | | | in committers (Message-Id: <72836.964344168@axl.ops.uunet.co.za>). Also cleaned up a .Pq macro which was causing problems previous to the original update I made. Reviewed by: sheldonh Approved by: jkh Notes: svn path=/head/; revision=63950
* Expand the -r option to support hex. Though undocumented, the -rJohn W. De Boskey2000-07-221-1/+1
| | | | | | | | | | | option already supported octal. Add a comment to the -r option in the man page so it's a bit more specific. Discrepancy brought to my attention by: sasdrq@unx.sas.com Approved by: jkh Notes: svn path=/head/; revision=63761
* Fix one grammar problem which crept in from rev 1.40 to rev 1.42, andSheldon Hearn2000-07-181-2/+2
| | | | | | | one mdoc problem from rev 1.40 (unnecessarily populated Nm macro). Notes: svn path=/head/; revision=63417
* Re-worded the description of the -r optionMark Ovens2000-07-151-2/+4
| | | | | | | | | PR: 18792 Submitted by: Bob Johnson <bobj@atlantic.net> Approved by: Alexander Langer <alex@freebsd.org> Notes: svn path=/head/; revision=63224
* Now, the mdoc fixes, such as:Alexander Langer2000-07-141-22/+28
| | | | | | | | | | | | * remove hard sentence breaks * use of Fl with Ar if argument available * Dq -> Sq where better * Ql -> Dq and Ql -> Fa where better * include sections to Xr macro * It Ar .ss -> It Ar ss Notes: svn path=/head/; revision=63155
* As per request by sheldonh and others on IRC, seperate language and mdocAlexander Langer2000-07-141-32/+28
| | | | | | | | | | fixes (very important in this case). Version 1.40 should be discarded. This version includes the language diffs. To receive them, use cvs diff [-u] -r 1.39 -r 1.41 Notes: svn path=/head/; revision=63153
* Fix several language, style and mdoc improvements (such as correctAlexander Langer2000-07-141-57/+60
| | | | | | | | | | | usage of .Xr and removal of hard sentence breaks). PR: 18880 Submitted by: Christian Weisgerber <naddy@unix-ag.uni-kl.de> Obtained from: OpenBSD (in parts) Notes: svn path=/head/; revision=63150
* Grumble. The previous commit still had the wrong date in theMike Pritchard2000-06-281-1/+1
| | | | | | | | example. Oct 29 0:30 +3 hours is still Oct 29, no matter what the DST setting is, and not Oct 30.. Notes: svn path=/head/; revision=62208
* Typo fix.Mike Pritchard2000-06-281-1/+1
| | | | | | | | PR: docs/19554 Submitted by: Kazuo Horikawa <horikawa@psinet.com> Notes: svn path=/head/; revision=62207