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
151973e1
Kaydet (Commit)
151973e1
authored
May 23, 2010
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#1436346: make it more obvious that timetuple[7] is yday.
üst
fee0f44b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
datetime.rst
Doc/library/datetime.rst
+10
-7
No files found.
Doc/library/datetime.rst
Dosyayı görüntüle @
151973e1
...
@@ -455,7 +455,9 @@ Instance methods:
...
@@ -455,7 +455,9 @@ Instance methods:
Return a :class:`time.struct_time` such as returned by :func:`time.localtime`.
Return a :class:`time.struct_time` such as returned by :func:`time.localtime`.
The hours, minutes and seconds are 0, and the DST flag is -1. ``d.timetuple()``
The hours, minutes and seconds are 0, and the DST flag is -1. ``d.timetuple()``
is equivalent to ``time.struct_time((d.year, d.month, d.day, 0, 0, 0,
is equivalent to ``time.struct_time((d.year, d.month, d.day, 0, 0, 0,
d.weekday(), d.toordinal() - date(d.year, 1, 1).toordinal() + 1, -1))``
d.weekday(), yday, -1))``, where ``yday = d.toordinal() - date(d.year, 1,
1).toordinal() + 1`` is the day number within the current year starting with
``1`` for January 1st.
.. method:: date.toordinal()
.. method:: date.toordinal()
...
@@ -920,12 +922,13 @@ Instance methods:
...
@@ -920,12 +922,13 @@ Instance methods:
Return a :class:`time.struct_time` such as returned by :func:`time.localtime`.
Return a :class:`time.struct_time` such as returned by :func:`time.localtime`.
``d.timetuple()`` is equivalent to ``time.struct_time((d.year, d.month, d.day,
``d.timetuple()`` is equivalent to ``time.struct_time((d.year, d.month, d.day,
d.hour, d.minute, d.second, d.weekday(), d.toordinal() - date(d.year, 1,
d.hour, d.minute, d.second, d.weekday(), yday, dst))``, where ``yday =
1).toordinal() + 1, dst))`` The :attr:`tm_isdst` flag of the result is set
d.toordinal() - date(d.year, 1, 1).toordinal() + 1`` is the day number within
according to the :meth:`dst` method: :attr:`tzinfo` is ``None`` or :meth:`dst`
the current year starting with ``1`` for January 1st. The :attr:`tm_isdst` flag
returns ``None``, :attr:`tm_isdst` is set to ``-1``; else if :meth:`dst`
of the result is set according to the :meth:`dst` method: :attr:`tzinfo` is
returns a non-zero value, :attr:`tm_isdst` is set to ``1``; else ``tm_isdst`` is
``None`` or :meth:`dst`` returns ``None``, :attr:`tm_isdst` is set to ``-1``;
set to ``0``.
else if :meth:`dst` returns a non-zero value, :attr:`tm_isdst` is set to ``1``;
else ``tm_isdst`` is set to ``0``.
.. method:: datetime.utctimetuple()
.. method:: datetime.utctimetuple()
...
...
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