summaryrefslogtreecommitdiff
path: root/bin/date/date.c
AgeCommit message (Expand)Author
2022-09-23Since tzset(3) ignores arbitrary files, we no longer need rpathFlorian Obser
2022-09-19When setting time, date(1) pledges "wpath" for logwtmp(3). RestrictFlorian Obser
2021-08-11If the -f argument includes %s, we need to use timegm(3) ratherIngo Schwarze
2019-08-08date(1): remove -d dst and -t minutes_westcheloha
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2019-01-21add a -f pformat flag to parse the given time with strptime.Ted Unangst
2018-04-25The time-setting codepath can use pledge "settime" which was added forTheo de Raadt
2018-02-13atoll -> strtonumcheloha
2017-12-23As we only use the .tv_sec field, simplify gettimeofday(2) -> time(3).cheloha
2016-10-19Delete useless setlocale(3) in src/bin/.Ingo Schwarze
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
2015-04-17FALLTHROUGH in getopt is incorrect. While here use strtonumTheo de Raadt
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
2015-02-07When getopt processing flags, many should be flag=1 instead of flag++Theo de Raadt
2014-01-21localtime(3) can return NULL; seen by Rod Whitworth; ok guenther@Otto Moerbeek
2014-01-05garbage collect unused global variable retval,Ingo Schwarze
2013-11-27remove erroneous char cast to switch expression processing getopt(3);Okan Demirmen
2013-11-21add unsigned char casts for specific calls to ctype.h macros.Theo de Raadt
2013-10-20Parse the argument the -r option with atoll() to support dates past 2038Philip Guenther
2012-12-04replace sys/param.h with sys/types.h (and sometimes add limits.h if needed)Theo de Raadt
2011-07-08extern.h no longer neededTheo de Raadt
2011-07-07timed's time is up. use ntpd(8). Even our own fossil developersTheo de Raadt
2011-03-11Add a non-standard option that affects the output TZ only. The input (forTheo de Raadt
2011-03-11Check that date(1) is not passed any extra arguments.Theo de Raadt
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
2007-12-28printf field widths are always int, so add a cast to removeCharles Longeau
2007-10-16sync the synopsis and usage of commandsIgor Sobrado
2007-05-25Remove y2k hack. If no century is specified, use the current one.Todd C. Miller
2007-04-12use UTC instead of GMT0 for -u; from Jared R.R.Spiegel <jrrs@ice-nine.org>Christian Weisgerber
2005-11-29add an option -j which suppresses setting the clock, but parses the dateDaniel Hartmeier
2003-10-15errx -> err. From form.Mike Pechkin
2003-07-29spacingTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
2002-07-04ansiTheo de Raadt
2002-04-17getopt idiotTheo de Raadt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
2002-01-16missed some registers, kill'em!Mike Pechkin
2001-12-02add -a to use adjtime(), like rdate(1) doesTheo de Raadt
2001-09-06o) __progname aria;Mike Pechkin
2001-03-26Fix comments, it is "daylight saving time", not "daylight savings time"Todd C. Miller
2000-11-09Fix an off-by-one-hour error that would occur when changing the time acrossAaron Campbell
2000-09-15check return value for setenv(3) for failure, and deal appropriatelyTheo de Raadt
2000-01-22remove extra externs not needed because of unistd.h (rest of tree will be don...Theo de Raadt
1999-02-01GMT -> UTC in comments; make y2k hack easier to readDavid Leonard
1999-01-02Clean up some -Wall stuff, and a potential problem if TM_TIME_BASE was notTobias Weingartner
1998-09-01Clear up an overeager Y2K fix; be a little stricter with allowable timesPaul Janzen
1997-09-17Cosmetic:bri