PHP Greenwich Mean Time (GMT)
Greenwich, England has been the home of Greenwich Mean Time (GMT) since 1884. GMT is sometimes called Greenwich Meridian Time because it is measured from the Greenwich Meridian Line at the Royal Observatory in Greenwich. Greenwich is the place from where all time zones are measured.
Enough boredom... If you have PHP 5 you can output the datetime in a clean way in GMT time. Using the 'P' modifier you can tell get how many hours your time is from GMT time. This way if your server time changes to a different timezone or whatever, the date will still be in GMT:
If you are not running PHP 5 you should. If you can't, then don't, just calculate the number of hours you are off GMT time and then hardcode it in the same function.
You’re currently reading “ PHP Greenwich Mean Time (GMT) ,” an entry on BRADINO
- Published:
- 3.24.07 / 10am
- Category:
- PHP














Have your say