Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Need help understanding this format in php
January 28, 2007, 6:55 pm
rate this thread
I downloaded a free php ip tracker and I'm having trouble
When it logs the time of a visit it has the time as 1170009695 for
1:41 pm EST. What kind of time is that? It looks like it's in seconds.
I think I get the 9695 but I can't get the 117000. Could someone
please explain this to me? And is there a way to change the time into
a format that's easier to understand?
Re: Need help understanding this format in php
Hehe, don't worry about leap seconds and all that.
Just remember it's the number of second since 1970-01-01 00:00:00, and
most date/time funnctions in PHP require a timestamp. To display a more
userfriendly date you can use strftime() or date().