[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#8782: date command
From: |
Rick Stanley |
Subject: |
bug#8782: date command |
Date: |
Wed, 01 Jun 2011 13:11:14 -0400 |
The date command is very useful. A lot of features and options which I
take advantage of as I need them. Every once in a while I need to use
the command to convert a UNIX Epoch Date to a normal date, so I attempt
to use the command as:
date -d 1306947372
Which results in the error message, "date: invalid date `1306947372'".
Neither 'date --help' or 'man date' shows that the command should have
been written as:
date -d @1306947372
I needed to do a Google search to see what I was doing wrong. (My memory
is not as good as it used to be!) ;^)
I don't know why this ('@') is needed, since the date command recognizes
many different date formats without specifying the format. For
completeness of the help and man page, please add a line explaining that
when passing a UNIX Epoch Date to the -d option, you need to prefix the
date with a '@'.
Thank you for your time and consideration!
Cheers!
Rick
--
RSI (Rick Stanley, Inc.)
(917) 822-7771
www.rsiny.com
Computer Systems Consulting
Linux & Open Source Specialists
- bug#8782: date command,
Rick Stanley <=
- bug#8782: date command, Pádraig Brady, 2011/06/01
- bug#8782: date command, Jesse Gordon, 2011/06/01
- bug#8782: date command, James Youngman, 2011/06/02
- bug#8782: date command, Jim Meyering, 2011/06/03
- bug#8782: date command, Voelker, Bernhard, 2011/06/03
- bug#8782: date command, Jim Meyering, 2011/06/03