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
fdc58f23
Kaydet (Commit)
fdc58f23
authored
Kas 15, 2004
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SF bug 1066438: datetime.replace method description error
Repair typo in example.
üst
6fe8f192
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
libdatetime.tex
Doc/lib/libdatetime.tex
+7
-7
No files found.
Doc/lib/libdatetime.tex
Dosyayı görüntüle @
fdc58f23
...
@@ -398,7 +398,7 @@ This is exact, and cannot overflow. timedelta.seconds and
...
@@ -398,7 +398,7 @@ This is exact, and cannot overflow. timedelta.seconds and
\item
[(4)]
\item
[(4)]
In other words,
\code
{
date1 < date2
}
In other words,
\code
{
date1 < date2
}
if and only if
\code
{
\var
{
date1
}
.toordinal() <
if and only if
\code
{
\var
{
date1
}
.toordinal() <
\var
{
date2
}
.toordinal()
}
.
\var
{
date2
}
.toordinal()
}
.
In order to stop comparison from falling back to the default
In order to stop comparison from falling back to the default
scheme of comparing object addresses, date comparison
scheme of comparing object addresses, date comparison
normally raises
\exception
{
TypeError
}
if the other comparand
normally raises
\exception
{
TypeError
}
if the other comparand
...
@@ -423,7 +423,7 @@ Instance methods:
...
@@ -423,7 +423,7 @@ Instance methods:
Return a date with the same value, except for those members given
Return a date with the same value, except for those members given
new values by whichever keyword arguments are specified. For
new values by whichever keyword arguments are specified. For
example, if
\code
{
d == date(2002, 12, 31)
}
, then
example, if
\code
{
d == date(2002, 12, 31)
}
, then
\code
{
d.replace(day=26) == date(200
0
, 12, 26)
}
.
\code
{
d.replace(day=26) == date(200
2
, 12, 26)
}
.
\end{methoddesc}
\end{methoddesc}
\begin{methoddesc}
{
timetuple
}{}
\begin{methoddesc}
{
timetuple
}{}
...
@@ -432,8 +432,8 @@ Instance methods:
...
@@ -432,8 +432,8 @@ Instance methods:
0, and the DST flag is -1.
0, and the DST flag is -1.
\code
{
\var
{
d
}
.timetuple()
}
is equivalent to
\code
{
\var
{
d
}
.timetuple()
}
is equivalent to
\code
{
time.struct
_
time((
\var
{
d
}
.year,
\var
{
d
}
.month,
\var
{
d
}
.day,
\code
{
time.struct
_
time((
\var
{
d
}
.year,
\var
{
d
}
.month,
\var
{
d
}
.day,
0, 0, 0,
0, 0, 0,
\var
{
d
}
.weekday(),
\var
{
d
}
.weekday(),
\var
{
d
}
.toordinal() - date(
\var
{
d
}
.year, 1, 1).toordinal() + 1,
\var
{
d
}
.toordinal() - date(
\var
{
d
}
.year, 1, 1).toordinal() + 1,
-1))
}
-1))
}
\end{methoddesc}
\end{methoddesc}
...
@@ -475,7 +475,7 @@ Instance methods:
...
@@ -475,7 +475,7 @@ Instance methods:
year 2004 begins on Monday, 29 Dec 2003 and ends on Sunday, 4 Jan
year 2004 begins on Monday, 29 Dec 2003 and ends on Sunday, 4 Jan
2004, so that
2004, so that
\code
{
date(2003, 12, 29).isocalendar() == (2004, 1, 1)
}
\code
{
date(2003, 12, 29).isocalendar() == (2004, 1, 1)
}
and
and
\code
{
date(2004, 1, 4).isocalendar() == (2004, 1, 7)
}
.
\code
{
date(2004, 1, 4).isocalendar() == (2004, 1, 7)
}
.
\end{methoddesc}
\end{methoddesc}
...
@@ -687,7 +687,7 @@ Supported operations:
...
@@ -687,7 +687,7 @@ Supported operations:
\lineii
{
\var
{
timedelta
}
=
\var
{
datetime1
}
-
\var
{
datetime2
}}{
(3)
}
\lineii
{
\var
{
timedelta
}
=
\var
{
datetime1
}
-
\var
{
datetime2
}}{
(3)
}
\lineii
{
\var
{
datetime1
}
<
\var
{
datetime2
}}
\lineii
{
\var
{
datetime1
}
<
\var
{
datetime2
}}
{
Compares
\class
{
datetime
}
to
\class
{
datetime
}
.
{
Compares
\class
{
datetime
}
to
\class
{
datetime
}
.
(4)
}
(4)
}
\end{tableii}
\end{tableii}
...
@@ -736,7 +736,7 @@ Supported operations:
...
@@ -736,7 +736,7 @@ Supported operations:
\item
[(4)]
\item
[(4)]
\var
{
datetime1
}
is considered less than
\var
{
datetime2
}
\var
{
datetime1
}
is considered less than
\var
{
datetime2
}
when
\var
{
datetime1
}
precedes
\var
{
datetime2
}
in time.
when
\var
{
datetime1
}
precedes
\var
{
datetime2
}
in time.
If one comparand is naive and
If one comparand is naive and
the other is aware,
\exception
{
TypeError
}
is raised. If both
the other is aware,
\exception
{
TypeError
}
is raised. If both
...
...
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