summaryrefslogtreecommitdiffstats
path: root/bin/date
Commit message (Collapse)AuthorAgeFilesLines
* Scheduled mdoc(7) sweep.ru2005-01-091-2/+2
|
* Change the behaviour of `-v' so that, e.g., stepping a month backyar2004-08-092-1/+30
| | | | | | | | | | | | | | | | | 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
* Give the most awesome example of how to parse the output of datealfred2004-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.
* Deal with double whitespace.ru2004-07-031-3/+5
|
* Mechanically kill hard sentence breaks.ru2004-07-021-1/+1
|
* DESCRIPTION was not updated for the new SYNOPSIS.ru2004-05-161-6/+7
|
* Give date(1) a much better SYNOPSIS section which is useful as more thangreen2004-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.
* Remove clause 3 from the UCB licenses.markm2004-04-064-16/+0
| | | | OK'ed by: imp, core
* Rev. 1.32 moved a comment to the wrong line. The hack refered tomtm2004-03-041-2/+2
| | | | | | | | | | in the comment applies to a decision that needs to be made in relation to the year 2000. In fact, that statement probably should be changed to be more generic (getting the year from the current time perhaps). Otherwise, starting in 2069 two digit year conversions in date(1) will start assuming 1900 instead of 2000. hehe.
* Note the Linux required format.obrien2004-01-061-0/+1
|
* Check for write errors; report and exit with error value.dds2003-10-041-0/+2
|
* Get this area compiling with the highest WARNS= that it works with.markm2003-06-131-2/+0
| | | | | | | Obsolete WFORMAT= junk also removed where possible. OK'ed by: obrien Tested on: sparc64, alpha, i386
* mdoc(7) police: markup laundry.ru2003-02-231-31/+22
|
* Add an example to help one manually set the date on one machine taking the outobrien2003-02-181-0/+5
| | | | put from another.
* Enclose sccsid according to style(9).charnier2003-02-052-5/+7
| | | | udp/timed -> timed/udp
* Staticify for lint.markm2002-10-181-2/+2
|
* Fix some twelve hour clock braindamage. The range for hours is 0-23 not 1-12.fanf2002-10-031-1/+1
| | | | MFC After: 1 week
* Consistently use __FBSDIDobrien2002-06-303-9/+6
|
* Use socklen_t for the length of a socket structure instead of `int'.keramida2002-06-091-1/+2
| | | | Reviewed by: mike
* s/CMOS/hardware as talked about on cvs-committers.trhodes2002-04-161-1/+1
| | | | | | Suggested by: sheldonh Approved by: bde MFC after: 1 day
* Little nit pick in date(1) manual page, tell users which clock date(1)trhodes2002-04-151-0/+6
| | | | | | sets PR: 35606
* Fix warnings inspired by lint, a commercial lint and WARNS=4.markm2002-02-223-20/+21
|
* Lock down with WFORMAT=1 except those directories with unfixed warnings.kris2002-02-041-0/+1
| | | | Tested on i386 and alpha.
* o __P has been reovedimp2002-02-023-17/+11
| | | | | | | | | | | o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. Approved by: arch@, new style(9)
* Default to WARNS=2. Binary builds that cannot handle this must explicitlyobrien2001-12-041-0/+1
| | | | | | set WARNS=0. Reviewed by: mike
* Remove assumption that time_t is an intdillon2001-10-281-1/+3
| | | | MFC after: 1 day
* mdoc(7) police:ru2001-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.
* Remove whitespace at EOL.dd2001-07-151-3/+3
|
* Simplify, with the power of new mdoc(7).ru2001-06-091-9/+3
|
* Add -j to the usage string.dd2001-06-091-1/+1
| | | | | PR: 27986 Submitted by: Cyrille Lefevre <clefevre@redirect.to>
* Fix an off-by-hour bug when crossing Daylight Saving Time boundary.ru2001-05-171-0/+3
| | | | | | PR: bin/27399 Submitted by: "Crist J. Clark" <crist.clark@globalstar.com> MFC after: 3 days
* Fix error reporting of delayed send errors.fenner2001-03-261-1/+1
|
* Make it clear that the -v option doesn't actually set the date.dd2001-03-161-2/+3
| | | | | PR: 24773 Approved by: nik
* Document the restrictions on changing times in high securelevels.ben2001-01-171-1/+5
| | | | | PR: 23502 Submitted by: Robert Boyd <rboyd@pokerspot.com>
* Prepare for mdoc(7)NG.ru2000-12-191-1/+1
|
* Prepare for mdoc(7)NG.ru2000-12-151-16/+30
|
* Exit if malloc() returns NULLbrian2000-12-011-1/+3
| | | | Submitted by: Chris Faulhaber <jedgar@fxp.org>
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-2/+2
|
* Don't explicitly declare optarg and optind. These are declared inimp2000-08-161-2/+0
| | | | unistd.h, which is already included.
* 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>
OpenPOWER on IntegriCloud