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
9ca35ec9
Kaydet (Commit)
9ca35ec9
authored
Ock 28, 2001
tarafından
Eric S. Raymond
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Instructive example for strftime(); how to generate RFC822 dates.
üst
d9b9ac85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
libtime.tex
Doc/lib/libtime.tex
+16
-0
No files found.
Doc/lib/libtime.tex
Dosyayı görüntüle @
9ca35ec9
...
...
@@ -224,6 +224,22 @@ Notes:
seconds and the (very rare) double leap seconds.
\end{description}
Here is an example, a format for dates compatible with that specified
in the
\rfc
{
822
}
Internet email standard.
\footnote
{
The use of
\%
Z is now
deprecated, but the
\%
z escape that expands to the preferred
hour/minute offset is not supported by all ANSI C libraries. Also,
a strict reading of the original 1982
\rfc
{
822
}
standard calls for
a two-digit year (
\%
y rather than
\%
Y), but practice moved to
4-digit years long before the year 2000.
}
\begin{verbatim}
>>> from time import *
>>> strftime("
\%
a,
\%
d
\%
b
\%
Y
\%
H:
\%
M:
\%
S
\%
Z", localtime())
'Sat, 27 Jan 2001 05:15:05 EST'
>>>
\end{verbatim}
Additional directives may be supported on certain platforms, but
only the ones listed here have a meaning standardized by ANSI C.
...
...
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