Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #65098
| From | Dan Sommers <dan@tombstonezero.net> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: pytz question: GMT vs. UTC |
| Date | 2014-01-31 06:28 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <lcffr9$7rb$1@dont-email.me> (permalink) |
| References | (6 earlier) <mailman.6107.1391052484.18130.python-list@python.org> <d913833c-cfc1-4514-a3b4-ed3338def941@googlegroups.com> <lcdqlv$dge$1@reader1.panix.com> <lcf7kd$gbt$2@dont-email.me> <52eb287c$0$29972$c3e8da3$5496439d@news.astraweb.com> |
On Fri, 31 Jan 2014 04:37:16 +0000, Steven D'Aprano wrote:
> On Fri, 31 Jan 2014 04:08:46 +0000, Dan Sommers wrote about temperatures:
>
>> And -1 K.
>
> You josh, but there are negative temperatures in Kelvin. They're hotter
> than infinitely hot.
>
> http://en.wikipedia.org/wiki/Negative_temperature
That's what I get for stopping with an undergraduate degree in physics.
Thanks for the link; I learned something interesting today.
ObPython: My program retrieves temperatures (in Kelvins) from an
external device (the details of which I am not at liberty to discuss)
and stores them in the cloud (because that's where all the cool kids
store data these days), and there's something really weird going on.
Here's my code and the output, filtered through http://sscce.org/:
$ cat ./program.py
import cloudstorageinterface
temperature1 = cloudstorageinterface.get_a_temperature()
temperature2 = cloudstorageinterface.get_a_temperature()
print('temperature1 is', temperature1, 'K')
print('temperature2 is', temperature2, 'K')
if temperature2 > temperature1:
print('temperature2 is hotter than temperature1')
if temperature2 < temperature1:
print('temperature1 is hotter than temperature2')
if temperature2 == temperature1:
print("this can't happen")
$ python ./program.py
temperature1 is -100 K
temperature2 is 100 K
temperature2 is hotter than temperature1
But everyone knows that -100K is hotter than 100K. I tried converting
to UTC, but that didn't help. What am I missing?
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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