summaryrefslogtreecommitdiffstats
path: root/bin/date
Commit message (Collapse)AuthorAgeFilesLines
* Explain that setting an absolute day value can fail and that the month shouldbrian2010-06-041-3/+11
| | | | | | | | | | usually be set first when using -v. Adjust an example that sets the day to 30 before setting the month to 3 in accordance with this approach as the example would always fail in February! PR: 147354 MFC after: 2 weeks
* Remove stale references to utmp(5) and its corresponding filenames.ed2010-01-211-2/+2
| | | | I removed utmp and its manpage, but not other manpages referring to it.
* Port everything in bin/ from utmp to utmpx.ed2010-01-132-4/+1
| | | | | date: use libc utmpx routines instead of the ones provided by libulog. pax: don't depend on <utmp.h>
* Let date(1) use utmpx instead of logwtmp().ed2009-12-052-5/+11
| | | | | utmpx also has OLD_TIME/NEW_TIME messages, which seem to be intended for the same purpose as how we call logwtmp() here.
* Don't reset DST computed by strptime() (when e.g. setting theru2008-02-071-6/+3
| | | | | | | date via -f %s). Reported by: Eugene Grosbein Diagnosed by: Miguel Lopes Santos Ramos
* Correct the referenced securelevel document, it's now securelevel 7.remko2007-06-021-2/+2
| | | | Pointed out by: ru
* Use strlcpy in place of strncpy + setting the last character NUL. Toimp2006-08-201-2/+2
| | | | be safe, memset the entire msg to '0'.
* -mdoc sweep.ru2005-11-171-6/+1
|
* Note which options are not part of the standards.trhodes2005-11-011-1/+12
| | | | | | | Xref locale(1) and bump document date. Reviewed by: keramida No Objections: -standards
* Expand *n't contractions.ru2005-02-131-1/+1
|
* Add the new standard EXIT STATUS section where appropriate.ru2005-01-161-38/+38
| | | | Sort standard sections in the (documented) preferred order.
* /*- or .\"- or #- to begin license clauses.imp2005-01-102-1/+2
|
* 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
|
OpenPOWER on IntegriCloud