Jump to content

Date convert from SQL


mssakib

Recommended Posts

Human readable to UTC example:

1316549989 = mktime(15,19,49,09,20,2011)

$utctime = mktime($hour,$minutes,$seconds,$month,$day,$year);

-------------------------------

UTC to Human readable example:

2011-09-20 15:19:49 = date('Y-m-d G:i:s',1316549989)

$humanreadabletime = date('Y-m-d G:i:s',$actual_utc_time);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.