Re: question about GMT and UTC



Marcus wrote:
Hello,

I need a timezone to store timestamps in that is independent of daylight saving. From everything I've read, it seems I want either GMT or UTC. The only problem is I can't figure out from any documentation I've read if there is any difference (practically speaking, not scientifically and taking into account the earth's orbit etc).

I can set my server timezone to GMT, but if I want UTC I will have to use putenv('TZ=UTC'). Could someone please confirm if they are in fact the same or if one is better, and if I am correct in stating that neither is affected by daylight saving? Lastly, if I set my server to GMT (or UTC for that matter), am I also correct in saying that in that case gmmktime() and gmdate() are the exact same as mktime() and date()? Thank you very much in advance for your help.

I should elaborate on my first point and ask additionally if a call to:

mktime(12, 0, 0, 5, 10, 2007);

for example, will always return the exact same timestamp in either GMT or UTC timezone and vice versa, i.e. 1 timestamp resulting in the exact same 12:00:00 readout via date() whether GMT or UTC. Thanks.
.



Relevant Pages

  • Re: UTCNow <> GMT
    ... For part of the year the UK observes Daylight Saving. ... When the UK enters Daylight Saving, it's timezone is NOT renamed. ... The uk switches from GMT to BST and back again, but GMT itself and UTC remain static and identical to one another. ...
    (microsoft.public.dotnet.languages.vb)
  • question about GMT and UTC
    ... I need a timezone to store timestamps in that is independent of daylight saving. ... it seems I want either GMT or UTC. ... I can set my server timezone to GMT, but if I want UTC I will have to use putenv. ... Could someone please confirm if they are in fact the same or if one is better, and if I am correct in stating that neither is affected by daylight saving? ...
    (comp.lang.php)
  • Re: Requiring a date be entered as mm/dd/yy on a form field.
    ... specify that they cannot calculate to that precision. ... Furthermore, UTC ... use whatever standard they are given. ... Most areas have some name that they use to refer to their timezone. ...
    (microsoft.public.scripting.jscript)
  • Re: hwclock problem with leapseconds - posix?
    ... preferably i also want the rtc updated during normal running system, ... You are using modified TAI, ... I have no idea what a leapsecond respecting timezone is. ... served better by using UTC. ...
    (comp.os.linux.setup)
  • Re: hwclock problem with leapseconds - posix?
    ... a quick look shows that hwclock uses the routines mktime with the timezone ... I suspect that the assumption that we are using UTC, not TAI, and that the ... preferably i also want the rtc updated during normal running system, ...
    (comp.os.linux.setup)