History log of /freebsd-9.3-release/usr.bin/at/parsetime.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 267654 19-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 225736 22-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


# 149215 18-Aug-2005 stefanf

While revision 1.26 fixed the code to really subtract 3600 due to
daylight-saving, this was actually wrong because mktime() already does that for
us.


# 148720 05-Aug-2005 stefanf

Don't throw away the adjusted `runtimer' value.


# 87628 10-Dec-2001 dwmalone

Style improvements recommended by Bruce as a follow up to some
of the recent WARNS commits. The idea is:

1) FreeBSD id tags should follow vendor tags.
2) Vendor tags should not be compiled (though copyrights probably should).
3) There should be no blank line between including cdefs and __FBSDIF.


# 87230 02-Dec-2001 markm

Use __FBSDID()


# 87208 02-Dec-2001 markm

WARNS=2 fixup.


# 86848 24-Nov-2001 brian

Allow an ``at now'' specification.

PR: 32242
Submitted by: Alan E <alane@geeksrus.net>
MFC after: 3 weeks


# 80294 24-Jul-2001 obrien

Expland `mymalloc' with malloc + error checking.


# 58660 27-Mar-2000 sheldonh

Y2K fix. at(1) would die with 'garbled time' when assign_date() was
pased a year > 99. This change fixes the conversion of 2-digit years
into tm_year format.

This change is differs from the OpenBSD fix because of differences
in our assign_date().

PR: 15872
Reported by: "Crist J. Clark" <cjclark@home.com>
Submitted by: "Sergey N. Voronkov" <serg@dor.zaural.ru>
Obtained from: OpenBSD


# 54158 05-Dec-1999 charnier

Correct use of .Nm, .Em, .Ev
Add rcsid. Use errx instead of fprintf + exit.
Various spelling fixes.


# 50477 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 50411 26-Aug-1999 nsayer

1. Add support for months and years in relative time spec (now + 1 year)

2. Rip out dateadd() and re-do the plus operator handler to use mktime()
instead (per wollman).

Reviewed by: wollman


# 41556 06-Dec-1998 archie

Eliminate compiler warnings from -Wall


# 38646 30-Aug-1998 steve

Typo fix: garbeld -> garbled

PR: 7784
Submitted by: Kris Kennaway <kkennawa@physics.adelaide.edu.au>


# 38188 08-Aug-1998 alex

Year is sometimes set to -1 when assign_date() is called. Check for -1
before Y2K processing.

PR: 7524


# 37538 09-Jul-1998 des

Recognize long month names in addition to short ones.

PR: bin/7228
Submitted by: Archie Cobbs <archie@whistle.com>


# 35729 04-May-1998 alex

Permit double digit year values to be used in the next millenium.


# 26872 24-Jun-1997 charnier

Revert part of previous commit. I didn't see rcsid string in the middle of
the file. Put includes in alphabetical order.


# 26835 23-Jun-1997 charnier

Use err(3).
Simplification: if(a == 12) a -= 12 -> if(a == 12) a = 0.


# 23012 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 17221 18-Jul-1996 jdp

Fix botches in the handling of "AM" and "PM":
12:xx PM is 12:xx, not 24:xx.
12:xx AM is 00:xx, not 12:xx.


# 10154 21-Aug-1995 ache

Upgrade to 2.9


# 9296 24-Jun-1995 joerg

Make parsetime.c more consistent by using the (already declared) enum
type instead of int all over the place. (Cosmetic, enhances
debugging.)

Point out that a date specification _must_ follow the time of day
spec, in the man page. This clarifies the last point PR # of bin/483:
"at doesn't seem to ..." (the remainder has already been fixed with
version 1.3 of parsetime.c).


# 8874 30-May-1995 rgrimes

Remove trailing whitespace.


# 7767 12-Apr-1995 ache

Upgrade.


# 6079 31-Jan-1995 bde

Fix off by one error in calculation of `mday' (months start at 1).
Jan 31 gave Jan 30, often for next year.


# 941 04-Jan-1994 nate

Added at/atrm/atq/batch from Linux as hacked by Chris Demetriou.