1833776 Members
2439 Online
110063 Solutions
New Discussion

tcb files

 
SOLVED
Go to solution
Charles Keyser
Frequent Advisor

tcb files

how would I convert the below numbers to a date?
u_pw_expire_warning#3888000

Is there a script or a command that would allow me to see the dates?

My Boss is curious to know this. Told him I would ask the experts

Thanks
CJ
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor
Solution

Re: tcb files

Hi:

The value is in units of seconds. Hence: 3888800/(60*60*24) = 45 days.

Regards!

...JRF...
Charles Keyser
Frequent Advisor

Re: tcb files

How are the units broke down into seconds
More questions will probably follow as he is looking for a simple way to convert it

Thanks again
James R. Ferguson
Acclaimed Contributor

Re: tcb files

Hi (again) Charles:

> How are the units broke down into seconds
More questions will probably follow as he is looking for a simple way to convert it

I think you want to know that 3,888,000 seconds in the future yields:

# perl -le 'print scalar localtime(time+3888000)'
Sun May 30 12:59:38 2010

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: tcb files

Shalom,

passwd -sa | grep username

That translates the data into something useful. It reads the /tcb files directly.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
doug hosking
Esteemed Contributor

Re: tcb files