summaryrefslogtreecommitdiff
path: root/bin/date
AgeCommit message (Collapse)Author
2016-09-12Remove mention of "remote time" in description for the -a flag.Jeremie Courreges-Anglas
timed(8) support for date(1) was removed years ago. ok millert@ deraadt@
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-07tame "stdio rpath wpath". rpath is for localtime() and mktime(),Theo de Raadt
while wpath is for logwtmp(), a bit pessimistically since it is not clear what could happen. This is done AFTER the time is potentially set, since settimeofday() is not available to us. Improvements and tests would be welcome.
2015-09-25drop useless .No, .Ns, and quotingIngo Schwarze
2015-04-17FALLTHROUGH in getopt is incorrect. While here use strtonumTheo de Raadt
to parse tz_minuteswest. ok millert
2015-03-17Eliminate use of TM_YEAR_BASE. OK guenther@ deraadt@ miod@Todd C. Miller
2015-03-15tzfile.h is an internal header that should never have been installed.Todd C. Miller
What's worse, the tzfile.h that gets installed is over 20 years old and doesn't match the real tzfile.h in libc/time. This makes the tree safe for /usr/include/tzfile.h removal. The TM_YEAR_BASE define has been moved to time.h temporarily until its usage is replaced by 1900 in the tree. Actual removal of tzfile.h is pending a ports build. Based on a diff from deraadt@
2015-02-07When getopt processing flags, many should be flag=1 instead of flag++Theo de Raadt
ok tedu miod
2015-01-15remove .Tn; from Jan Stary <hans at stare dot cz>Ingo Schwarze
2014-02-14reference xsi, not xpg;Jason McIntyre
ok millert schwarze sobrado (or standards@ as i'm tempted to call them ;)
2014-01-21localtime(3) can return NULL; seen by Rod Whitworth; ok guenther@Otto Moerbeek
2014-01-05comma previous;Jason McIntyre
2014-01-05garbage collect unused global variable retval,Ingo Schwarze
forgotten in rev. 1.36 when removing timed(8) support; proofed by sobrado@
2014-01-05some conversion specifiers are not required by POSIX;Ingo Schwarze
joint work and OK jmc@ sobrado@
2014-01-05date(1) can only exit(0) or exit(1), not exit(2), so make this .Ex -std;Ingo Schwarze
obviouly, this was forgotten in rev. 1.57 when removing timed(8) support. ok jmc@ sobrado@
2014-01-03note that our date supports traditional bsd date format, which isJason McIntyre
different to what posix/xpg specifies; diff originally posted to tech, changed after some feedback from kettenis, then a bit more from schwarze and sobrado; ok schwarze sobrado
2013-11-27remove erroneous char cast to switch expression processing getopt(3);Okan Demirmen
not used in any cases. ok deraadt@, guenther@, millert@
2013-11-21add unsigned char casts for specific calls to ctype.h macros.Theo de Raadt
ok guenther step
2013-10-20Parse the argument the -r option with atoll() to support dates past 2038Philip Guenther
from J Drivdal (xjd (at) rivu.net)
2012-12-04replace sys/param.h with sys/types.h (and sometimes add limits.h if needed)Theo de Raadt
ok guenther
2011-08-31use the same format/text, as far as possible, for date strings;Jason McIntyre
help/ok guenther millert
2011-07-08extern.h no longer neededTheo de Raadt
2011-07-08remove a closing (unmatched) Re, missed in previous;Jason McIntyre
2011-07-07timed's time is up. use ntpd(8). Even our own fossil developersTheo de Raadt
switched a while back. ok miod, kettenis
2011-03-11add -z to the extensions list in STANDARDS;Jason McIntyre
2011-03-11Add a non-standard option that affects the output TZ only. The input (forTheo de Raadt
parsing) TZ is unaffected. This makes it it easier to convert timestamps from any timezone to any other timezone -- no need for $() gymnastics ok millert
2011-03-11Check that date(1) is not passed any extra arguments.Theo de Raadt
ok millert
2010-09-19more wacky macro fixing;Jason McIntyre
2010-09-03add an EXIT STATUS section for /bin;Jason McIntyre
2010-07-22move exit returns blurb out of DIAGNOSTICS; from daniel dickmanJason McIntyre
2010-04-01tweak previous; ok deraadtJason McIntyre
2010-03-31Make a -DSMALL version of date(1) for the mediaTheo de Raadt
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2008-10-01give a less confusing error message on bindresvport() failure; okOtto Moerbeek
matthieu@ millert@
2007-12-28printf field widths are always int, so add a cast to removeCharles Longeau
"warning: field width is not type int" "looks good" otto@
2007-10-16sync the synopsis and usage of commandsIgor Sobrado
ok jmc@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-29- consistent STANDARDS blurbJason McIntyre
- note which options are extensions to POSIX discussed w/ deraadt otto millert
2007-05-25Remove y2k hack. If no century is specified, use the current one.Todd C. Miller
OK otto@
2007-04-12use UTC instead of GMT0 for -u; from Jared R.R.Spiegel <jrrs@ice-nine.org>Christian Weisgerber
ok millert@, otto@
2006-05-15better example;Jason McIntyre
from siju george ok deraadt
2006-04-25various small lint cleanups; ok ottoTheo de Raadt
2006-01-08make the description of the first example a little more informative;Jason McIntyre
2005-11-30timezone -> time zoneJason McIntyre
2005-11-29add an option -j which suppresses setting the clock, but parses the dateDaniel Hartmeier
argument. useful to convert string-to-epoch (with +%s) or just to check whether the argument is parsed correctly before really setting the clock. ok millert@, deraadt@
2005-11-07- document the `cc' part of `ccyy'Jason McIntyre
- get its description right - minor grammar tweaks ok otto@
2004-07-21tidy up EXAMPLES somewhat;Jason McIntyre
2004-07-09make date(1), rdate(8), ntpd(8), and timed(8) .Xr themselves;Jason McIntyre
mostly from Andreas Kahari (PR #3846);
2004-04-07.Xr rdate 8 in SEE ALSO;Jason McIntyre
from xsa@