bug-sh-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

date


From: Jens Röder
Subject: date
Date: Thu, 7 Mar 2002 13:45:43 +0100 (CET)

Hello,

is it possible with date to set the time it shall display with the number
of seconds, one gets from the output of:

'  %s   seconds since 00:00:00, Jan 1, 1970 (a GNU extension)'

If not I would suggest to implement this possibility, because it could be
quite practical for use in shell sctips.

The reason is as follows: In one of my scripts I use 'date +%s' as time
step as part of a identification number and I would later be able to
display the date of the identification again.

As far as I see, date does not accept the single number, so one could use
this free function like:

date 1006589268


with best regards

JR


-- 
Jens Röder, Braunschweig




reply via email to

[Prev in Thread] Current Thread [Next in Thread]