History log of /freebsd-current/usr.bin/at/parsetime.c
Revision Date Author Comments
# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 4d846d26 10-May-2023 Warner Losh <imp@FreeBSD.org>

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with: pfg
MFC After: 3 days
Sponsored by: Netflix


# 90de1ffb 08-Dec-2017 Alan Somers <asomers@FreeBSD.org>

at(1): annotate some intended switch-case fallthroughs

Reported by: Coverity
CID: 1008191
MFC after: 3 weeks
Sponsored by: Spectra Logic Corp


# 1de7b4b8 27-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

various: general adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

No functional change intended.


# 93a2fe45 05-Oct-2012 Martin Cracauer <cracauer@FreeBSD.org>

Allow time offsets to be negative, e.g. `at 1530 - 15 minutes`.

This is useful if you have been given some time for some event in some
format and you want your computer to do something to prepare for it.
Without having to do time arithmetic in a shellscript.

The syntax matches what the at(1) usually used on Linux supports.


# f64efe8b 06-Nov-2011 Ed Schouten <ed@FreeBSD.org>

Add missing static keywords to at(1).

While there, tidy up the privs.h part, where at.c has to #define to
declare some globals. Also group static and non-static global variables
in at.c.


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 4ed70180 18-Aug-2005 Stefan Farfeleder <stefanf@FreeBSD.org>

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.


# 3dc44a89 05-Aug-2005 Stefan Farfeleder <stefanf@FreeBSD.org>

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


# 9f5b04e9 10-Dec-2001 David Malone <dwmalone@FreeBSD.org>

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.


# 51e2220c 02-Dec-2001 Mark Murray <markm@FreeBSD.org>

Use __FBSDID()


# 3ce6c357 01-Dec-2001 Mark Murray <markm@FreeBSD.org>

WARNS=2 fixup.


# bafdc304 24-Nov-2001 Brian Somers <brian@FreeBSD.org>

Allow an ``at now'' specification.

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


# a9be9be8 24-Jul-2001 David E. O'Brien <obrien@FreeBSD.org>

Expland `mymalloc' with malloc + error checking.


# f4510294 27-Mar-2000 Sheldon Hearn <sheldonh@FreeBSD.org>

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


# 81c8c7a4 05-Dec-1999 Philippe Charnier <charnier@FreeBSD.org>

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


# c3aac50f 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# b6c989ff 26-Aug-1999 Nick Sayer <nsayer@FreeBSD.org>

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


# 5f618f92 06-Dec-1998 Archie Cobbs <archie@FreeBSD.org>

Eliminate compiler warnings from -Wall


# 3297b869 30-Aug-1998 Steve Price <steve@FreeBSD.org>

Typo fix: garbeld -> garbled

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


# 1f939e34 08-Aug-1998 Alexander Langer <alex@FreeBSD.org>

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

PR: 7524


# b9dd99f2 09-Jul-1998 Dag-Erling Smørgrav <des@FreeBSD.org>

Recognize long month names in addition to short ones.

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


# 1dbfc421 04-May-1998 Alexander Langer <alex@FreeBSD.org>

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


# e5e5da15 24-Jun-1997 Philippe Charnier <charnier@FreeBSD.org>

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


# 12d20ef9 23-Jun-1997 Philippe Charnier <charnier@FreeBSD.org>

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


# c115df18 22-Feb-1997 Peter Wemm <peter@FreeBSD.org>

Revert $FreeBSD$ to $Id$


# 1130b656 14-Jan-1997 Jordan K. Hubbard <jkh@FreeBSD.org>

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.


# 9b2ea11c 18-Jul-1996 John Polstra <jdp@FreeBSD.org>

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.


# ddcf8022 20-Aug-1995 Andrey A. Chernov <ache@FreeBSD.org>

Upgrade to 2.9


# 29eaad36 24-Jun-1995 Joerg Wunsch <joerg@FreeBSD.org>

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).


# 7799f52a 30-May-1995 Rodney W. Grimes <rgrimes@FreeBSD.org>

Remove trailing whitespace.


# b89321a5 11-Apr-1995 Andrey A. Chernov <ache@FreeBSD.org>

Upgrade.


# 68abb9f9 31-Jan-1995 Bruce Evans <bde@FreeBSD.org>

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


# d78e98d2 04-Jan-1994 Nate Williams <nate@FreeBSD.org>

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