summaryrefslogtreecommitdiffstats
path: root/usr.bin/at/parsetime.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* When specifying the time in the form HHMM or HH:MM, if that timenaddy2019-02-161-2/+3
| | | | | | | is already past, the next day is assumed. Handle the case where we're still in the same hour but the minutes are past. ok deraadt@ millert@
* Use warn/warnx here too.millert2015-11-111-12/+10
|
* Remove bogus DST code. mktime() handles DST automatically whenmillert2015-11-111-5/+1
| | | | tm_isdst is set to -1.
* Use __progname instead of the homegrown ProgramName.millert2015-11-061-8/+8
|
* Do not cast result of malloc/calloc/realloc* if stdlib.h is in scopederaadt2015-08-201-2/+2
| | | | ok krw millert
* Eliminate use of TM_YEAR_BASE. OK guenther@ deraadt@ miod@millert2015-03-171-4/+4
|
* tzfile.h is an internal header that should never have been installed.millert2015-03-151-2/+1
| | | | | | | | | 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@
* Add the "next" keyword as an alias for "+ 1" for relative times.millert2014-01-131-19/+44
| | | | | Also support "months" and "years" keywords when specified as relative time units. All as per POSIX. Man page changes OK jmc@ sobrado@
* variety of unsigned char casts (or conversions) for ctypederaadt2013-11-251-6/+6
| | | | ok krw
* 'wether' -> 'whether' typo in license text.krw2010-07-021-2/+2
| | | | ok deraadt@
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-5/+1
| | | | | | | 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
* Sanity check the time argument specified by the -t argument. Somemillert2007-05-231-3/+3
| | | | | checks adapted from date(1). Now prevents scheduling jobs in the past just like the standard (ie: not -n) at(1) date parsing.
* Cleanup, remove an unused var, use an int to store argc instead of a char,cloder2006-04-261-3/+9
| | | | makes lint a bit happier. OK deraadt
* Remove trailing whitespace and, for printf, uid/gid are unsignedmillert2004-06-171-5/+5
|
* Sync with ISC cron-current + my at(1) integration.millert2003-02-201-46/+76
| | | | The at(1) code is now more tightly integrated into the cron codebase.
* spelling; from Brian Poole <raj@cerias.purdue.edu>todd2002-06-141-3/+3
|
* Major changes:millert2002-05-141-29/+18
| | | | | | | | | | | | | | | | | | | | | Job names are now "runtime.queue" where runtime is when the job will run in Unix time format. This is what SysV at does and allows us to nuke the .SEQ file. Historic BSD options for atq and atrm are now implemented; atq and atrm get their own man pages. At no longer does anything with the -v flag. We print the execution time when jobs are submitted so there is no need. Most *scanf() usage is gone (one remains in atrun). Better sanity checks in atrun. Random style/cleanup. With these changes we have the best of both worlds; POSIX compliance with the traditional BSD features.
* Pass -Wall and use ANSI function headers.millert2002-05-111-28/+14
|
* Y2K fix. at(1) would die with 'garbled time' when assign_date() was passedmillert2000-01-051-17/+19
| | | | | a year > 99. This change fixes the conversion of 2-digit years into tm_year format.
* PR 778: Handle 2-digit year values post-Y2K. Improvements to PR 778alex1999-03-211-5/+16
| | | | provided by pjanzen.
* long month names; archie@whistle.comderaadt1998-07-101-2/+14
|
* user err/warn; some -Wallmickey1998-07-091-3/+4
|
* make 'now' work as a timespecmillert1998-06-261-3/+9
|
* Merge in changes from at 2.9millert1997-03-011-373/+431
|
* rcsidderaadt1996-06-261-1/+2
|
* got am/pm reversed when hour is 12; from Mark_Weaver@brown.edu; netbsd pr#1743deraadt1996-01-021-8/+5
|
* initial import of NetBSD treederaadt1995-10-181-0/+595