Re: Example of "date" sytax to return a date in the past?
Quoting Stan Brown (stanb@awod.com):
> I know thta it's possible to sue the GNU version of date, as provided with
> Debian to return a dat, say 30 minutes in the past.
>
> However I can't seem to get the syntax quie correct. From the man page,
> it's apparent that I need the --date option, but what is the "STRING"
> fomrat?
$ date --date "30 mins ago"
Fri May 4 16:49:39 BST 2001
$ date
Fri May 4 17:19:45 BST 2001
$
Cheers,
--
Email: d.wright@open.ac.uk Tel: +44 1908 653 739 Fax: +44 1908 655 151
Snail: David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer: These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.
Reply to: