Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
8349bc2b
Kaydet (Commit)
8349bc2b
authored
May 15, 2012
tarafından
R David Murray
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#14766: Reflow the altered paragraphs.
üst
089d4d4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
datetime.rst
Doc/library/datetime.rst
+18
-18
No files found.
Doc/library/datetime.rst
Dosyayı görüntüle @
8349bc2b
...
@@ -14,8 +14,8 @@
...
@@ -14,8 +14,8 @@
The :mod:`datetime` module supplies classes for manipulating dates and times in
The :mod:`datetime` module supplies classes for manipulating dates and times in
both simple and complex ways. While date and time arithmetic is supported, the
both simple and complex ways. While date and time arithmetic is supported, the
focus of the implementation is on efficient attribute extraction for output
focus of the implementation is on efficient attribute extraction for output
formatting and manipulation. For related
formatting and manipulation. For related
functionality, see also the
functionality, see also the
:mod:`time` and :mod:`calendar` modules.
:mod:`time` and :mod:`calendar` modules.
There are two kinds of date and time objects: "naive" and "aware".
There are two kinds of date and time objects: "naive" and "aware".
...
@@ -26,22 +26,22 @@ is used to represent a specific moment in time that is not open to
...
@@ -26,22 +26,22 @@ is used to represent a specific moment in time that is not open to
interpretation [#]_.
interpretation [#]_.
+A naive object does not contain enough information to unambiguously locate
+A naive object does not contain enough information to unambiguously locate
+itself relative to other date/time objects. Whether
+itself relative to other date/time objects. Whether
a naive object represents
a naive object represents Coordinated Universal Time (UTC),
Coordinated Universal Time (UTC), local time, or time in some other timezone is
local time, or time in some other timezone is purely up to the program, just
purely up to the program, just like it's up to the program whether a particular
like it's up to the program whether a particular number represents metres,
number represents metres, miles, or mass. Naive objects are easy to understand
miles, or mass. Naive objects are easy to understand and to
and to work with, at the cost of ignoring some aspects of reality.
work with, at the cost of ignoring some aspects of reality.
For applications requiring aware objects, :class:`.datetime` and :class:`.time`
For applications requiring aware objects, :class:`.datetime` and :class:`.time` objects
objects have an optional time zone information attribute, :attr:`tzinfo`, that
have an optional time zone information attribute, :attr:`tzinfo`, that can be
can be set to an instance of a subclass of the abstract :class:`tzinfo` class.
set to an instance of a subclass of the abstract :class:`tzinfo` class. These
These :class:`tzinfo` objects capture information about the offset from UTC
:class:`tzinfo` objects capture information about the offset from UTC time, th
e
time, the time zone name, and whether Daylight Saving Time is in effect. Not
e
t
ime zone name, and whether Daylight Saving Time is in effect. Note that no
t
hat no concrete :class:`tzinfo` classes are supplied by the :mod:`datetime`
concrete :class:`tzinfo` classes are supplied by the :mod:`datetime` module.
module. Supporting timezones at whatever level of detail is required is up to
Supporting timezones at whatever level of detail is required is up to th
e
the application. The rules for time adjustment across the world are mor
e
application. The rules for time adjustment across the world are more political
political than rational, and there is no standard suitable for every
than rational, and there is no standard suitable for every
application.
application.
The :mod:`datetime` module exports the following constants:
The :mod:`datetime` module exports the following constants:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment