Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #64944

pytz question: GMT vs. UTC

Date 2014-01-29 11:29 -0600
Subject pytz question: GMT vs. UTC
From Skip Montanaro <skip@pobox.com>
Newsgroups comp.lang.python
Message-ID <mailman.6092.1391016578.18130.python-list@python.org> (permalink)

Show all headers | View raw


According ato the pytz doc (http://pytz.sourceforge.net/):

"‘UTC’ is Universal Time, also known as Greenwich Mean Time or GMT in
the United Kingdom."

If they are equal, why don't timezone objects created from those two
strings compare equal?

>>> pytz.timezone("UTC") == pytz.timezone("GMT")
False

(I'm revealing my complete ignorance of timezone manipulation by
asking this question.)

Thx,

Skip

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

pytz question: GMT vs. UTC Skip Montanaro <skip@pobox.com> - 2014-01-29 11:29 -0600
  Re: pytz question: GMT vs. UTC Grant Edwards <invalid@invalid.invalid> - 2014-01-29 19:02 +0000
    Re: pytz question: GMT vs. UTC Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-01-29 19:17 -0500
    Re: pytz question: GMT vs. UTC Chris Angelico <rosuav@gmail.com> - 2014-01-30 11:28 +1100
    Re: pytz question: GMT vs. UTC Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-01-29 20:50 -0500
    Re: pytz question: GMT vs. UTC MRAB <python@mrabarnett.plus.com> - 2014-01-30 02:40 +0000
    Re: pytz question: GMT vs. UTC Chris Angelico <rosuav@gmail.com> - 2014-01-30 14:27 +1100
      Re: pytz question: GMT vs. UTC wxjmfauth@gmail.com - 2014-01-30 00:45 -0800
        Re: pytz question: GMT vs. UTC MRAB <python@mrabarnett.plus.com> - 2014-01-30 11:51 +0000
        Re: pytz question: GMT vs. UTC Grant Edwards <invalid@invalid.invalid> - 2014-01-30 15:21 +0000
          Re: pytz question: GMT vs. UTC Dan Sommers <dan@tombstonezero.net> - 2014-01-31 04:08 +0000
            Re: pytz question: GMT vs. UTC Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-01-31 04:37 +0000
              Re: pytz question: GMT vs. UTC Dan Sommers <dan@tombstonezero.net> - 2014-01-31 06:28 +0000
                Re: pytz question: GMT vs. UTC Chris Angelico <rosuav@gmail.com> - 2014-01-31 17:42 +1100
                Re: pytz question: GMT vs. UTC Dan Sommers <dan@tombstonezero.net> - 2014-02-01 06:30 +0000
              Re: pytz question: GMT vs. UTC Roy Smith <roy@panix.com> - 2014-01-31 10:00 -0500
            Re: pytz question: GMT vs. UTC Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-31 09:59 +0000
          Re: pytz question: GMT vs. UTC Pete Forman <petef4+usenet@gmail.com> - 2014-02-02 12:45 +0000
            Re: pytz question: GMT vs. UTC wxjmfauth@gmail.com - 2014-02-02 06:38 -0800
            Re: pytz question: GMT vs. UTC Grant Edwards <invalid@invalid.invalid> - 2014-02-02 16:03 +0000
        Re: pytz question: GMT vs. UTC Rustom Mody <rustompmody@gmail.com> - 2014-01-30 23:02 -0800
          Re: pytz question: GMT vs. UTC wxjmfauth@gmail.com - 2014-01-31 02:17 -0800
            Re: pytz question: GMT vs. UTC Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-31 14:50 +0000
              Re: pytz question: GMT vs. UTC Roy Smith <roy@panix.com> - 2014-01-31 10:04 -0500
                Re: pytz question: GMT vs. UTC Robert Kern <robert.kern@gmail.com> - 2014-01-31 15:08 +0000
    Re: pytz question: GMT vs. UTC Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-01-30 19:44 +1300
    Re: pytz question: GMT vs. UTC Christian Heimes <christian@python.org> - 2014-01-30 10:49 +0100
      Re: pytz question: GMT vs. UTC wxjmfauth@gmail.com - 2014-01-30 02:10 -0800
      Re: pytz question: GMT vs. UTC Grant Edwards <invalid@invalid.invalid> - 2014-01-30 15:23 +0000
        Re: pytz question: GMT vs. UTC Larry Martell <larry.martell@gmail.com> - 2014-01-30 10:28 -0500
    Re: pytz question: GMT vs. UTC Chris Angelico <rosuav@gmail.com> - 2014-01-30 21:10 +1100
    Re: pytz question: GMT vs. UTC Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-01-30 20:18 -0500

csiph-web