addition of gmt times in php

Posted by hunt on Stack Overflow See other posts from Stack Overflow or by hunt
Published on 2010-05-04T07:11:59Z Indexed on 2010/05/04 7:18 UTC
Read the original article Hit count: 222

Filed under:
|

Hi ,

i have a time zone in 2010-05-04T05:27:00.000Z format which indicates the GMT time and i want to add GMT 10+ in to it using php.

i can do that thing using following code but how would i directly add 2010-05-04T05:27:00.000Z and GMT 10+ so that i can get a valid date and time.

$offset=10*60*60; 
$dateFormat="d-m-Y H:i::m:s";
echo $timeNdate=gmdate($dateFormat, time()+$offset);

© Stack Overflow or respective owner

Related posts about php

Related posts about timezone