4images Forum & Community

General / Allgemeines => Programming => Topic started by: tester on May 11, 2009, 11:19:19 AM

Title: php gmt time
Post by: tester on May 11, 2009, 11:19:19 AM
does anybody know how to get gmt timestamp in php?  :roll:
Title: Re: php gmt time
Post by: Nicky on May 11, 2009, 11:24:49 AM
hi,

http://us2.php.net/gmmktime
Title: Re: php gmt time
Post by: tester on May 11, 2009, 11:37:47 AM
tnx,
but i'm looking 4 something like time() function that returns current gmt timestamp.
and it looks like php doesnt have one %-|
Title: Re: php gmt time
Post by: V@no on May 11, 2009, 04:53:08 PM
As Nicky pointed out gmmktime() (http://www.php.net/manual/function.gmmktime.php) should do it (note, all parameters are optional, if omitted, it will return current GMT unix timestamp)
Title: Re: php gmt time
Post by: tester on May 12, 2009, 12:46:17 AM
ops, true
tnx!