pytz question: GMT vs. UTC
wxjmfauth at gmail.com
wxjmfauth at gmail.com
Thu Jan 30 03:45:20 EST 2014
Le jeudi 30 janvier 2014 04:27:54 UTC+1, Chris Angelico a écrit :
> On Thu, Jan 30, 2014 at 1:40 PM, MRAB <python at mrabarnett.plus.com> wrote:
>
> >> How cruel... I suspect the smack at 0degC is much more painful
>
> >> than one
>
> >> at room temperature <G>
>
> >>
>
> > It's the 21st century; you should be making use of Unicode: 0°C.
>
>
>
> I started to read that and thought you were going to advocate the use of 0°K...
>
>
======
The temperature unit is the "Kelvin", not the "Degree Kelvin".
One writes: 0 K, 275.15 K
It can also be the "Degree Celsius", not the "Celsius".
One writes: -273.15 °C, 0 °C
>>> import unicodedata as ud
>>> for c in '\u2109\u212a\u2103\u00b0':
... print(ud.name(c))
...
DEGREE FAHRENHEIT
KELVIN SIGN
DEGREE CELSIUS
DEGREE SIGN
>>>
jmf
More information about the Python-list
mailing list