u_suclog number (45 Views)
Reply
Occasional Advisor
Pablo  Arnaldi
Posts: 13
Registered: ‎03-28-2001
Message 1 of 4 (45 Views)

u_suclog number

Hi:
Under my /tcb/auth... in hpux 10.20 with trusted system, I found that u_suclog value stores de seconds since The Epoch. Ok. I need to substarct the seconds from now to the seconds in u_suclog. I like to know. How can I obtain the seconds from The Epoch (1-1-1970) from now?
command date? mmhh.
Thanks in advance, and best regards.

Pablo
Pablux
Acclaimed Contributor
A. Clay Stephenson
Posts: 17,825
Registered: ‎07-16-1998
Message 2 of 4 (45 Views)

Re: u_suclog number

perl -e 'print scalar localtime(45671234)' where 45671234 is the number of epoch seconds.
If it ain't broke, I can fix that.
Honored Contributor
Craig Rants
Posts: 1,078
Registered: ‎10-23-2001
Message 3 of 4 (45 Views)

Re: u_suclog number

This is what I use.

/usr/contrib/bin/perl -e "print time"

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Occasional Advisor
Pablo  Arnaldi
Posts: 13
Registered: ‎03-28-2001
Message 4 of 4 (45 Views)

Re: u_suclog number

THANK YOU GUYS !!!!!!!!!
Pablux
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.