.TH SECONDS 1 
.SH NAME
seconds \- convert human-readable date (and time) to seconds since epoch
.SH SYNOPSIS
.B seconds
[
.I date
\&...
]
.SH DESCRIPTION
.I Seconds
prints the number of seconds since
.L 1
.L Jan
.L 1970 
.L 00:00:00
.L GMT
corresponding to one or more human-readable
.IR date s,
with optional 24-hour times.
Each
.I date
must be
.I one
argument;
it will usually be necessary to enclose it in quotes.
With no arguments,
.I seconds
will read lines from standard input and convert them.
.PP
.I Seconds
accepts a somewhat wider range of input than just output from
.IR date (1).
The main requirement is that the date must be fully specified,
with a day of month, month and year
in any order.
The month must be an English name (or abbreviation),
not a number, and the year must contain 4 digits.
Unambiguous time-zone names are understood (i.e., not
.LR IST )
or time zones may be written as
.IR ±hhmm .
Case is ignored.
.PP
Alternatively,
.I date
may be an Internet date as specified in RFC 3339.
.SH EXAMPLES
Print the names of all files under
.L \&.
modified since the start of 23 May 2011.
.IP
.EX
du -ta | awk '$1 >= '^`{seconds '23 may 2011'}^' {print $2}'
.EE
.SH SEE ALSO
.IR date (1),
.IR du (1),
.IR mtime (1),
.IR ctime (2)
.SH BUGS
All-numeric dates, popular in the USA, are simply ambiguous,
more so if the year is truncated to 2 digits.
.PP
The number printed fits in a 32-bit
.L unsigned
.LR long ,
so the last possible time is
.LR 4294967294 ,
corresponding to
.B Sat
.B Feb
.B 6
.B 22:28:14
.B PST
.BR 2106 .
