summaryrefslogtreecommitdiff
path: root/bin/date/date.c
AgeCommit message (Expand)Author
2023-05-31Add -R to usagekim
2023-05-31Add -R option for displaying time in RFC 5322 format, similar to GNU date.kim
2022-10-22Add -f option to set the time. From FreeBSD.christos
2021-05-26tool changeschristos
2014-09-01Provide real error messages.dholland
2011-08-27Annotate dead functionsjoerg
2011-01-29revert the revert and fix the code properly.christos
2011-01-28roll back to 20101210 -- the current version just hung if one trieddrochner
2010-12-12check return value of localtime.christos
2010-12-11- check return of strtollchristos
2010-10-03Simplify by using setenv() instead of putenv().gson
2010-10-02putenv() no longer accepts a const stringgson
2010-05-29Don't blow up on date +''. Patch from Robert Elz in followup to PR 39392.dholland
2008-07-20Remove the \n and tabs from the __COPYRIGHT() strings.lukem
2008-02-24Use strtoll rather than strtol to read the -r argument, so it will workdholland
2007-02-04Use size_t not int for strlen().cbiere
2006-11-20getdate -> parsedatechristos
2006-11-17getdate is in libutil.christos
2006-11-15Add -d option, similar to gnu date.christos
2006-11-15Add -j flag to not actually change the clock, just parse the date givenjdarrow
2006-10-07PR/28450: David H. Gutteridge: date(1) does not validate its input andelad
2006-08-17don't include program name when calling err()jnemeth
2006-07-23PR/34055: Kevin Massey: Date uses a fixed 1K buffer for strftimechristos
2005-07-22More minor cleanup:peter
2005-07-22Minor code cleanup:hubertf
2005-06-26sprinkle a little const, and now everything compiles with WARNS=3christos
2005-05-15Set (and report) the new time (not the old one).dsl
2005-04-18Add a '-a' option to set the time using adjtime(2) instead of settimeofday(2).dsl
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
2003-08-04As discusses a little while back on tech-userlevel:jschauma
2001-09-16Use setprogname. Patch by Petri Koistinen.wiz
2001-09-13ANSIfication and KNF fixes by Petri Koistinen in bin/13691.wiz
2001-07-08setthetime() is prototyped static; make it so.gmcgarry
2000-10-23Use strtol() to convert the -r parameter so we can use alternate basessimonb
2000-10-08When setting the date, ask mktime() to work out whether we're in DST or not.bjh21
2000-04-14Don't declare 'extern opt*' getopt variables.simonb
2000-01-04Make this slightly more portable by using putenv().kleink
1998-11-04cast to unsigned char for is*()christos
1998-10-24GMT -> UTCmycroft
1998-10-14For the case where mktime() fails exit with "illegal time" error rather thanwsanchez
1998-07-28Be more retentive about use of NOTREACHED and noreturn.mycroft
1998-07-28Delint.mycroft
1998-07-27__AUDIT__ cleanup.mycroft
1998-04-01Need <time.h> for time(), strftime(), localtime() and mktime() prototypes.kleink
1998-01-21Slight code rearrangement.mycroft
1998-01-20Don't validate the mmddhhmm.ss values here. mktime(3) does it.mycroft
1998-01-20Make the documented parsing order for the date match reality.mycroft
1998-01-20Allow a century to be specified.mycroft
1998-01-20Use TM_YEAR_BASE to adjust tm_year, not 1900.mycroft
1997-11-05lintcgd