summaryrefslogtreecommitdiffstats
path: root/bin/date/date.c
AgeCommit message (Expand)AuthorFilesLines
2019-08-08date(1): remove -d dst and -t minutes_westcheloha1-23/+4
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt1-2/+2
2019-01-21add a -f pformat flag to parse the given time with strptime.tedu1-63/+76
2018-04-25The time-setting codepath can use pledge "settime" which was added forderaadt1-2/+5
2018-02-13atoll -> strtonumcheloha1-2/+5
2017-12-23As we only use the .tv_sec field, simplify gettimeofday(2) -> time(3).cheloha1-8/+6
2016-10-19Delete useless setlocale(3) in src/bin/.schwarze1-7/+4
2015-10-09Change all tame callers to namechange to pledge(2).deraadt1-3/+3
2015-10-07tame "stdio rpath wpath". rpath is for localtime() and mktime(),deraadt1-1/+4
2015-04-17FALLTHROUGH in getopt is incorrect. While here use strtonumderaadt1-7/+6
2015-03-17Eliminate use of TM_YEAR_BASE. OK guenther@ deraadt@ miod@millert1-2/+2
2015-03-15tzfile.h is an internal header that should never have been installed.millert1-2/+1
2015-02-07When getopt processing flags, many should be flag=1 instead of flag++deraadt1-2/+2
2014-01-21localtime(3) can return NULL; seen by Rod Whitworth; ok guenther@otto1-2/+6
2014-01-05garbage collect unused global variable retval,schwarze1-3/+3
2013-11-27remove erroneous char cast to switch expression processing getopt(3);okan1-2/+2
2013-11-21add unsigned char casts for specific calls to ctype.h macros.deraadt1-3/+3
2013-10-20Parse the argument the -r option with atoll() to support dates past 2038guenther1-2/+2
2012-12-04replace sys/param.h with sys/types.h (and sometimes add limits.h if needed)deraadt1-2/+2
2011-07-08extern.h no longer neededderaadt1-3/+1
2011-07-07timed's time is up. use ntpd(8). Even our own fossil developersderaadt1-32/+19
2011-03-11Add a non-standard option that affects the output TZ only. The input (forderaadt1-5/+11
2011-03-11Check that date(1) is not passed any extra arguments.deraadt1-4/+11
2010-03-31Make a -DSMALL version of date(1) for the mediaderaadt1-1/+13
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt1-15/+1
2007-12-28printf field widths are always int, so add a cast to removechl1-3/+3
2007-10-16sync the synopsis and usage of commandssobrado1-3/+3
2007-05-25Remove y2k hack. If no century is specified, use the current one.millert1-14/+8
2007-04-12use UTC instead of GMT0 for -u; from Jared R.R.Spiegel <jrrs@ice-nine.org>naddy1-3/+3
2005-11-29add an option -j which suppresses setting the clock, but parses the datedhartmei1-5/+11
2003-10-15errx -> err. From form.mpech1-3/+3
2003-07-29spacingderaadt1-3/+3
2003-06-02Remove the advertising clause in the UCB license which Berkeleymillert1-7/+3
2002-07-04ansideraadt1-9/+6
2002-04-17getopt idiotderaadt1-3/+3
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert1-5/+5
2002-01-16missed some registers, kill'em!mpech1-4/+4
2001-12-02add -a to use adjtime(), like rdate(1) doesderaadt1-9/+25
2001-09-06o) __progname aria;mpech1-4/+8
2001-03-26Fix comments, it is "daylight saving time", not "daylight savings time"millert1-4/+4
2000-11-09Fix an off-by-one-hour error that would occur when changing the time acrossaaron1-2/+4
2000-09-15check return value for setenv(3) for failure, and deal appropriatelyderaadt1-3/+4
2000-01-22remove extra externs not needed because of unistd.h (rest of tree will be done later.. contact me if you want to help)deraadt1-4/+2
1999-02-01GMT -> UTC in comments; make y2k hack easier to readd1-7/+8
1999-01-02Clean up some -Wall stuff, and a potential problem if TM_TIME_BASE was notweingart1-3/+4
1998-09-01Clear up an overeager Y2K fix; be a little stricter with allowable timespjanzen1-19/+20
1997-09-17Cosmetic:bri1-6/+6
1997-09-16nicer spacing in usagederaadt1-3/+3
1997-08-21correct [yy]yy stuff in manpages and usagederaadt1-3/+3
1997-07-23tabifykstailey1-3/+3