summaryrefslogtreecommitdiffstats
path: root/bin/date
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* 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>
OpenPOWER on IntegriCloud