Page 1 of 1
Converting timestamp to seconds...
Posted: Fri Aug 16, 2002 5:15 pm
by DynamiteHost
I need to convert a standard mysql 14 character timestamp to seconds.
Anyone know how to do this?
Thanks, any help is appreciated

Posted: Fri Aug 16, 2002 5:34 pm
by gotDNS
I suppose you could just figure out what each part of the timestamp represent....(i forget)....then multiply by the appropraite numbers (216000?) to get it into second...
Posted: Fri Aug 16, 2002 7:26 pm
by fatalcure
isnt a timestamp already in seconds?
try strtotime($timestamp);
Posted: Sat Aug 17, 2002 10:46 am
by daemorhedron
Take your pick from the numerous selections :
http://www.zend.com/codex.php?CID=348
HTH