On Mon, 14 Nov 2011 02:06:04 -0500, Philip Webb wrote:

> To convert a UNIX date to a human-readable version the command is :
> 
>   556: ~> date -d @1321251520
>   Mon Nov 14 01:18:40 EST 2011
>   
> I would like to create a Bash alias or function to do this,
> but can't get the Bash syntax right: it keeps telling me
> "date: the argument `1321251520' lacks a leading `+';
> when using an option to specify date(s), any non-option
> argument must be a format string beginning with `+'
> Try `date --help' for more information".

It is difficult to say what is wrong with your alias as you haven't shown
it, but my guess is that is is introducing a space between the @ and the
timestamp, which gives exactly the error you get.


-- 
Neil Bothwick

When companies ship Styrofoam, what do they pack it in?

Attachment: signature.asc
Description: PGP signature

Reply via email to