PDA

View Full Version : Convert time


Nullification
08-24-2012, 09:43 PM
2012-08-21 17:14:35 1345583675
2012-08-21 17:25:36 1345584336
2012-08-22 13:37:05 1345657025
2012-08-23 07:35:38 1345721738
2012-08-24 10:28:29 1345818509
2012-08-24 12:48:08 1345826888
2012-08-24 13:12:48 1345828368

Can you help me convert these to regular time?

nhawk
08-24-2012, 09:50 PM
For vBulletin date/time...

vbdate($vbulletin->options['dateformat'], '1345828368')
vbdate($vbulletin->options['timeformat'], '1345828368')


For straight PHP date/time...

date("Y-m-d G:i:s",'1345828368')