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
9ee94dec
Kaydet (Commit)
9ee94dec
authored
Ock 20, 2011
tarafından
Alexander Belopolsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Corrected the entry about new year range in the time module.
üst
ec89d35c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
3.2.rst
Doc/whatsnew/3.2.rst
+13
-5
No files found.
Doc/whatsnew/3.2.rst
Dosyayı görüntüle @
9ee94dec
...
...
@@ -935,11 +935,19 @@ datetime and time
after 1900. The new supported year range is from 1000 to 9999 inclusive.
* The rules for two-digit years in time tuples have changed. Now, the
:func:`time.asctime` and :func:`time.strftime` functions will format any year
when :attr:`time.accept2dyear` is false and will accept four-digit years
otherwise. The :func:`time.mktime` and :func:`time.strftime` functions now
accept full range supported by the operating system. Conversion of two-digit
years to four-digit is deprecated.
:func:`time.asctime`, :func:`time.strftime` and :func:`time.mktime`
functions will accept any two- or four-digit year when
:attr:`time.accept2dyear` is true. Two-digit years are converted to
four-digits using the same heuristics as before, but a deprecation
warning will be issued whenever such conversion occurs.
* The :func:`time.asctime`, :func:`time.mktime`, and
:func:`time.strftime` functions are no longer restricted to years
after 1900. Now, when :attr:`time.accept2dyear` is false, the
:func:`time.asctime` function will accept any year that fits in
a C int, while :func:`time.mktime` and :func:`time.strftime`
functions will accept full range supported by the corresponding
operating system functions.
(Contributed by Alexander Belopolsky and Victor Stinner.)
...
...
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