[Datetime-SIG] Clearing up terminology

Alexander Belopolsky alexander.belopolsky at gmail.com
Thu Jul 30 17:04:17 CEST 2015


On Thu, Jul 30, 2015 at 10:05 AM, Guido van Rossum <guido at python.org> wrote:

> [Alexander Belopolsky]
>
>> >> As far as I understand, NodaTime to Python dictionary would have the
>> >> following translations:
>> >>
>> >>  LocalDatetime: datetime with tzinfo=None (naive datetime)
>>
>
>>
> That's all fine, but my point remains, that the tz-less datetime object
> does *not* always mean local time. The definition I quoted from Alexander
> conflated the two, incorrectly IMO.
>

I agree with that, but it is my understanding that Noda's  LocalDatetime
concept most closely matches our "naive datetime" concept.

According to Noda documentation, LocalDatetime is

"A date and time in a particular calendar system. A LocalDateTime value
does not represent an instant on the time line, because it has no
associated time zone: "November 12th 2009 7pm, ISO calendar" occurred at
different instants for different people around the world." [1]

Since it "has no associated time zone," it "does *not* always mean local
time" even thought it has "Local" in the name.

[1]: http://nodatime.org/1.2.x/api/html/T_NodaTime_LocalDateTime.htm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/datetime-sig/attachments/20150730/3b983795/attachment.html>


More information about the Datetime-SIG mailing list