summaryrefslogtreecommitdiffstats
path: root/bin/date
Commit message (Collapse)AuthorAgeFilesLines
...
* Try to clean the manpage up according to the mail from Sheldonjwd2000-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
* Expand the -r option to support hex. Though undocumented, the -rjwd2000-07-222-2/+3
| | | | | | | | 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
* Fix one grammar problem which crept in from rev 1.40 to rev 1.42, andsheldonh2000-07-181-2/+2
| | | | one mdoc problem from rev 1.40 (unnecessarily populated Nm macro).
* Re-worded the description of the -r optionmarko2000-07-151-2/+4
| | | | | | PR: 18792 Submitted by: Bob Johnson <bobj@atlantic.net> Approved by: Alexander Langer <alex@freebsd.org>
* Now, the mdoc fixes, such as:alex2000-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
* As per request by sheldonh and others on IRC, seperate language and mdocalex2000-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
* Fix several language, style and mdoc improvements (such as correctalex2000-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)
* Grumble. The previous commit still had the wrong date in thempp2000-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..
* Typo fix.mpp2000-06-281-1/+1
| | | | | PR: docs/19554 Submitted by: Kazuo Horikawa <horikawa@psinet.com>
* Mention the timezone where appropriate (for the -v option).brian2000-06-221-3/+3
| | | | correct one of the -v options.
* Propogate the ``call mktime'' flag from adjwday() down to adjday().brian2000-05-231-4/+4
| | | | Submitted by: Christian Weisgerber <naddy@mips.inka.de>
* Correct confusion and differentiate appropriately between GMT and UTC whendbaker2000-05-192-4/+4
| | | | | | | | | date is launched with the "u" argument. It now operates in the documented manner. Fix typo in date man page. Submitted by: David McNett <nugget@slacker.com>
* Change -v so that variences in units of days or less are sensitive tobrian2000-04-122-65/+76
| | | | | | DST. Explain in more detail what date -v does when mixed with DST. Previous code suggested broken by: wollman
* Always give mktime a timeval with tm_isdst set to -1, otherwisebrian2000-04-051-64/+117
| | | | | | | | | | | | | | | | things get a bit out-of-phase when we step backwards 1 hour from between 0:00 and 1:00 on the first of the month following the transition into Summer time. This is probably actually a bug in mktime(). PR: 10963 If mktime() fails and 68 < year < 138, assume that the reason is because of Summer time and adjust up or down according to our adjusting context by one hour. This assumes that all DSTs are multiples of 1 hour. PR: 6223, 17750
* Correct confusing description of the -r option.sheldonh2000-03-071-2/+7
| | | | | PR: 17250 Submitted by: cjclark@home.com (Crist J. Clark)
* Re-add "May" to the list of dates supported.alfred2000-02-181-2/+2
| | | | Approved by: jkh
* Fix various mandoc bugsbrian2000-01-121-23/+48
|
* Back out previous commit and replace with a cleaner solution adaptedsheldonh1999-12-291-11/+21
| | | | | | | | | | | | from the source attributed below. In particular, this removes a goto inside a switch and replaces those horrendous ATOI macros with something acceptable. More clean-ups to come. PR: bin/14151 Reported by: Christian Weisgerber <naddy@mips.rhein-neckar.de> Obtained from: NetBSD
* Allow the year to be specified with an optional century.sheldonh1999-11-102-4/+14
| | | | | PR: 14472 Reported by: j_guojun@lbl.gov (Jin Guojun)
* $Id$ -> $FreeBSD$peter1999-08-277-7/+7
|
* Remove obsolete BUGS section which describes something which stoppedjkh1999-08-251-16/+1
| | | | | | being relevant when we ripped out the BSD/VAX code. Submitted by: Guy Harris <gharris@flashcom.net>
* Don't continue if parsing failed when -f is in use. Exit with nonzero value.cracauer1999-06-251-3/+2
|
* the month and three days are up for -hackers and the 24hrs for -committers.jmg1999-05-142-20/+34
| | | | | | | | | | | | add a -j flag that tells date not to try to set the date. This allows you to use date as a userland interface to strptime. example: TZ=GMT date -j -f "%a, %d %b %Y %T %Z" "Sun, 08 Nov 1998 02:22:20 GMT" +%s which is the standard format for Last-modified headers in HTTP requests. only one to respond: eivind
* Various spelling/formatting changes.kris1999-05-081-2/+4
| | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
* First set of fixes to keep egcs happy. These include {} around singleimp1999-04-251-3/+5
| | | | | | | | | | statement if blocks[*] when the else could be ambiguous, not defaulting to int type and removal of some unused variables. [*] This is explicitly allowed by style(9) when the single statement spans more than one line. Reviewed by: obrien, chuckr
* Support seconds with -v.brian1999-03-093-13/+55
| | | | | PR: 6308 Submitted by: Max Euston <meuston@jmrodgers.com>
* Example "19%y" changed to "%Y" to discourage poor usage.danny1999-01-131-2/+2
|
* Don't put compiler warning flags in leaf Makefiles.bde1998-12-071-2/+1
|
* Added missing #include <string.h>alex1998-10-031-1/+2
|
* .Sh ENVIRONMENT VARIABLES -> .Sh ENVIRONMENTphk1998-05-131-2/+2
| | | | | | PR: 6599 Reviewed by: phk Submitted by: Josh Gilliam <josh@quick.net>
* Restore Lite-2 sccsid. Restore include of sys/param.h.charnier1998-05-132-4/+5
|
* Correct use of .Nm and other cosmetics. Add rcsid. Remove unused #inc.charnier1998-05-064-22/+25
|
* Spelling/typo fixes: (preceeded, friday).rnordier1998-04-201-3/+3
|
* Cast a size_t to a long to avoid a gcc warning.jb1998-01-251-3/+3
|
* Add (BSD) copyright headers.brian1997-12-212-0/+56
|
* Put [+format] at the end of the usage message.brian1997-12-112-7/+8
| | | | | | Make `date -?' output (pretty much) the same as the man page PR: 5269
* Change example from US to international standard date notation.wosch1997-10-031-3/+3
|
* Back out suppress '\n' mod.danny1997-10-032-16/+8
|
* Add the '-s' flag to the usage string.danny1997-10-011-2/+2
|
* Add the ability to supress the '\n' at the end of the date printed.danny1997-10-012-7/+15
|
* Fix the broken `date HHMM.SS' handling.joerg1997-09-301-2/+3
| | | | | PR: bin/4661 Submitted by: blank@sliphost37.uni-trier.de (Sascha Blank)
* spelling corrections.wosch1997-09-131-2/+2
| | | | | PR: docs/4450 Submitted by: josh@quick.net
* fix misspellingjmg1997-08-301-2/+2
| | | | | | Submitted-by: Josh Gilliam Closes PR:4425
* Hint at how to use TZ.brian1997-08-181-1/+6
| | | | Submitted by: grog@lemis.com
* Remove forgotten debug statement.brian1997-08-101-2/+1
|
* Add "-f fmt date" for specification of thebrian1997-08-102-63/+93
| | | | | | | | date using strptime(3). Suggested by: Michael Smith <msmith@atrad.adelaide.edu.au> Change mm & dd to MM & DD so that they don't clash with the month.
* Change [-DMHW [+|-]val] to [-v [+|-]val[ymwdHM]]brian1997-08-095-108/+166
| | | | | Support Hours & Minutes Add -Wall to Makefile
* Add [-DWMY] flags for date adjustment.brian1997-08-045-8/+430
| | | | Discussed with: freebsd-hackers
* Cosmetic change in usage string.charnier1997-06-061-4/+4
|
* Off by 1 adjustment.charnier1997-06-021-2/+2
|
OpenPOWER on IntegriCloud