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
1c127e74
Kaydet (Commit)
1c127e74
authored
Nis 28, 1998
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
calendar module section for the library reference, by Drew Csillag.
üst
6afad379
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
90 additions
and
0 deletions
+90
-0
libcalendar.tex
Doc/lib/libcalendar.tex
+45
-0
libcalendar.tex
Doc/libcalendar.tex
+45
-0
No files found.
Doc/lib/libcalendar.tex
0 → 100644
Dosyayı görüntüle @
1c127e74
% This section was contributed by Drew Csillag <drew_csillag@geocities.com>.
\section
{
Standard Module
\module
{
calendar
}}
\label
{
module-calendar
}
\stmodindex
{
calendar
}
This module allows you to output calendars like the
\UNIX
{}
\manpage
{
cal
}{
1
}
program.
\begin{funcdesc}
{
isleap
}{
year
}
Returns
\code
{
1
}
if
\var
{
year
}
is a leap year.
\end{funcdesc}
\begin{funcdesc}
{
leapdays
}{
year1, year2
}
Return the number of leap years in the range
[
\var
{
year1
}
\ldots\var
{
year2
}
].
\end{funcdesc}
\begin{funcdesc}
{
weekday
}{
year, month, day
}
Returns the day of the week (
\code
{
0
}
is Monday) for
\var
{
year
}
(
\code
{
1970
}
--
\dots
),
\var
{
month
}
(
\code
{
1
}
--
\code
{
12
}
),
\var
{
day
}
(
\code
{
1
}
--
\code
{
31
}
).
\end{funcdesc}
\begin{funcdesc}
{
monthrange
}{
year, month
}
Returns weekday of first day of the month and number of days in month,
for the specified
\var
{
year
}
and
\var
{
month
}
.
\end{funcdesc}
\begin{funcdesc}
{
monthcalendar
}{
year, month
}
Returns a matrix representing a month's calendar. Each row represents
a week; days outside of the month a represented by zeros.
\end{funcdesc}
\begin{funcdesc}
{
prmonth
}{
year, month
\optional
{
, width
\optional
{
, length
}}}
Prints a month's calendar. If
\var
{
width
}
is provided, it specifies
the width of the columns that the numbers are centered in. If
\var
{
length
}
is given, it specifies the number of lines that each
week will use.
\end{funcdesc}
\begin{funcdesc}
{
prcal
}{
year
}
Prints the calendar for the year
\var
{
year
}
.
\end{funcdesc}
Doc/libcalendar.tex
0 → 100644
Dosyayı görüntüle @
1c127e74
% This section was contributed by Drew Csillag <drew_csillag@geocities.com>.
\section
{
Standard Module
\module
{
calendar
}}
\label
{
module-calendar
}
\stmodindex
{
calendar
}
This module allows you to output calendars like the
\UNIX
{}
\manpage
{
cal
}{
1
}
program.
\begin{funcdesc}
{
isleap
}{
year
}
Returns
\code
{
1
}
if
\var
{
year
}
is a leap year.
\end{funcdesc}
\begin{funcdesc}
{
leapdays
}{
year1, year2
}
Return the number of leap years in the range
[
\var
{
year1
}
\ldots\var
{
year2
}
].
\end{funcdesc}
\begin{funcdesc}
{
weekday
}{
year, month, day
}
Returns the day of the week (
\code
{
0
}
is Monday) for
\var
{
year
}
(
\code
{
1970
}
--
\dots
),
\var
{
month
}
(
\code
{
1
}
--
\code
{
12
}
),
\var
{
day
}
(
\code
{
1
}
--
\code
{
31
}
).
\end{funcdesc}
\begin{funcdesc}
{
monthrange
}{
year, month
}
Returns weekday of first day of the month and number of days in month,
for the specified
\var
{
year
}
and
\var
{
month
}
.
\end{funcdesc}
\begin{funcdesc}
{
monthcalendar
}{
year, month
}
Returns a matrix representing a month's calendar. Each row represents
a week; days outside of the month a represented by zeros.
\end{funcdesc}
\begin{funcdesc}
{
prmonth
}{
year, month
\optional
{
, width
\optional
{
, length
}}}
Prints a month's calendar. If
\var
{
width
}
is provided, it specifies
the width of the columns that the numbers are centered in. If
\var
{
length
}
is given, it specifies the number of lines that each
week will use.
\end{funcdesc}
\begin{funcdesc}
{
prcal
}{
year
}
Prints the calendar for the year
\var
{
year
}
.
\end{funcdesc}
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