[Phoenix-pm] perl -e

Loo, Peter Peter.Loo at bannerhealth.com
Fri Sep 23 16:28:53 PDT 2005


Thanks you very much.  Here is what I will do:

CURTIME=`perl -e 'print(time())'`

Perhaps I will just rewrite the whole program in PERL.

Thank you.
 
Peter Loo

-----Original Message-----
From: aj at exiledplanet.org [mailto:aj at exiledplanet.org] 
Sent: Friday, September 23, 2005 4:04 PM
To: Loo, Peter; phoenix-pm at pm.org
Subject: re: [Phoenix-pm] perl -e

Actually, check out the time() function.  It returns the seconds since
the epoch (for whatever is considered the epoch on your platform).
'perldoc -f time' at a command prompt should give you the necessary
info, or check your local copy of the Camel.

[aj]

"Loo, Peter" <Peter.Loo at bannerhealth.com> wrote:
__________
> Pie Charts
>      Hello  All,
> 
> I am  currently writing a shell program to automate a processwhich
requires the  time value to do calculation. I was trying to get the
epoch time (seconds  since January 1, 1970) using the Unix "date '+%s'"
command. However, AIX  does not support "%s". So I am thinking about
writing my own C program  just to output this seconds value, then I
thought about using "localtime" in  PERL. What do you recommend?
> 
> Thank you.
> 
> Peter Loo
> Technical Services  Dept
> Banner  Health
> Phoenix, AZ  85008
> 
> 



More information about the Phoenix-pm mailing list