summaryrefslogtreecommitdiffstats
path: root/bin/date
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
| | | | Reviewed by: phk
* date(1) didn't emit a final newline if the format had been specifiedjoerg1995-04-032-5/+5
| | | | | | with `+'. This breaks tradition and violates Posix 1003.2. Discoverd by: luigi@labinfo.iet.unipi.it (Luigi Rizzo)
* Obtained from: partly from 386BSD-0.1.2.4bde1994-12-261-14/+17
| | | | | | | | | | | | | Fix several bugs involving the obsolescent -d and -t options: -d 0 and -t 0 were ignored -t -600 was a usage error -d 'atoi is not suitable for parsing args' and -t duh were not usage errors Change some error messages to say which call to settimeofday failed. Restore casts of NULL in function calls. Finish conversion to using err() instead of perror().
* Added $Id$dg1994-09-245-0/+7
|
* Reviewed by:ats1994-08-281-1/+1
| | | | | Submitted by: Oops, overlooked another typo in this man page.
* Reviewed by:ats1994-08-281-2/+2
| | | | | Submitted by: Correct two typos in the format string usages.
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-265-0/+693
OpenPOWER on IntegriCloud