#19440: Translate error on p.save() tutorial example
---------------------------------+--------------------------------------
Reporter: michelwilhelm@… | Owner: nobody
Type: Uncategorized | Status: closed
Component: Translations | Version: 1.4
Severity: Normal | Resolution: invalid
Keywords: translate | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Comment (by charettes):
From the
[http://docs.python.org/2/library/datetime.html?highlight=datetime#module-
datetime datetime documentation].
''There are two kinds of date and time objects: “naive” and “aware”.''
''An aware object has sufficient knowledge of applicable algorithmic and
political time adjustments, such as time zone and daylight saving time
information,to locate itself relative to other aware objects. An aware
object is used to represent a specific moment in time that is not open to
interpretation..''
''A naive object does not contain enough information to unambiguously
locate itself relative to other date/time objects. Whether a naive object
represents Coordinated Universal Time (UTC), local time, or time in some
other timezone is purely up to the program, just like it’s up to the
program whether a particular number represents metres, miles, or mass.
Naive objects are easy to understand and to work with, at the cost of
ignoring some aspects of reality.''
--
Ticket URL: <https://code.djangoproject.com/ticket/19440#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.