Networker

Re: [Networker] Calculate current time from EPOC

2004-10-27 09:16:01
Subject: Re: [Networker] Calculate current time from EPOC
From: Somen Chanda <schanda AT NETJETS DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Wed, 27 Oct 2004 09:15:06 -0400
Do you have a way to calculate the date of a particular day which is
from 7 days earlier or even 1 day earlier?

Thanks

Somen

-----Original Message-----
From: Darren Dunham [mailto:ddunham AT TAOS DOT COM] 
Sent: Tuesday, October 26, 2004 5:38 PM
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Subject: Re: [Networker] Calculate current time from EPOC

>
> Does anyone have a script to calculate the current time in seconds
from
> EPOC?

I just use perl.

% perl -le 'print time'

If you have gnu 'date' installed, you can do

% date +%s

% date +%s; perl -le 'print time'
1098825471
1098825471


--
Darren Dunham                                           ddunham AT taos DOT com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

--
Note: To sign off this list, send a "signoff networker" command via
email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list. Questions regarding this list
should be sent to stan AT temple DOT edu
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list. Questions regarding this list
should be sent to stan AT temple DOT edu
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

<Prev in Thread] Current Thread [Next in Thread>