summaryrefslogtreecommitdiffstats
path: root/bin/date
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Fix typo in comment; Document in an example that years beyond 1999danny1997-04-162-4/+4
| | | | are handled; fix typo in same example.
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-281-2/+2
| | | | posix standard on the topic.
* Fix buffer overflowguido1997-03-101-2/+3
|
* Revert $FreeBSD$ to $Id$peter1997-02-225-5/+5
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-145-5/+5
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Merge Lite2 mods, fix incorrect default string, cleanupsteve1996-12-143-13/+16
| | | | use of .Nm macros, and -Wall cleaning.
* [HISTORY] command appeared in Version 1 AT&T UNIXwosch1996-08-291-1/+6
| | | | Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
* For nonexisten time use proper diagnostic instead of bad format and usageache1996-04-061-2/+2
|
* Fix 'stutter' in manpage.nate1996-03-121-2/+2
| | | | | | | The man page for date(1) talks about "a a" maximum, not just "a" maximum. Submitted by: Simon Burge <simonb@telstra.com.au> via NetBSD GNATS
* Add setlocale(LC_TIME,...ache1995-10-231-1/+3
|
* Correct the default format info to indicate "%+".dg1995-08-281-2/+2
|
* Use %+ to print data using LC_TIMEache1995-08-051-2/+2
|
OpenPOWER on IntegriCloud