Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date conversion help!

Status
Not open for further replies.

mikedaruke

Technical User
Mar 14, 2005
199
US
I have a date on this output I got. I am trying to figure how to convert it. I know two examples


Monday May 02 2005 20:10:59 = 1115079059
Tuesday May 03 2005 20:43:28 = 1115167408

I searching now to figure it out, can anybody help?
 
it looks like it could be a total number of seconds past a set date.
 
Those are Unix epoch times which is the number of seconds since Jan 01, 1970.


print scalar(localtime(1115079059));

check out the various date modules on CPAN for doing date conversions - Date::Calc, DateTime, etc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top