pytz question: GMT vs. UTC

Skip Montanaro skip at pobox.com
Wed Jan 29 12:29:28 EST 2014


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



More information about the Python-list mailing list