Author Topic: php gmt time  (Read 15378 times)

0 Members and 1 Guest are viewing this topic.

Offline tester

  • Pre-Newbie
  • Posts: 3
    • View Profile
php gmt time
« on: May 11, 2009, 11:19:19 AM »
does anybody know how to get gmt timestamp in php?  :roll:
test wikipedia test redirect to wikipedia

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: php gmt time
« Reply #1 on: May 11, 2009, 11:24:49 AM »
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline tester

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: php gmt time
« Reply #2 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 %-|
test wikipedia test redirect to wikipedia

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: php gmt time
« Reply #3 on: May 11, 2009, 04:53:08 PM »
As Nicky pointed out gmmktime() should do it (note, all parameters are optional, if omitted, it will return current GMT unix timestamp)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline tester

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: php gmt time
« Reply #4 on: May 12, 2009, 12:46:17 AM »
ops, true
tnx!
test wikipedia test redirect to wikipedia