mirror of https://github.com/python/cpython
Add markup for time object.
Cleanup whitespace. Fix unbalanced parenthesis.
This commit is contained in:
parent
41c554fbec
commit
cbd6cd2312
|
@ -250,7 +250,7 @@ This is exact, but may overflow.
|
||||||
Division by 0 raises \exception{ZeroDivisionError}.
|
Division by 0 raises \exception{ZeroDivisionError}.
|
||||||
|
|
||||||
\item[(3)]
|
\item[(3)]
|
||||||
-\var{timedelta.max} is not representable as a \class{timedelta} object).
|
-\var{timedelta.max} is not representable as a \class{timedelta} object.
|
||||||
|
|
||||||
\end{description}
|
\end{description}
|
||||||
|
|
||||||
|
@ -741,23 +741,24 @@ Instance methods:
|
||||||
|
|
||||||
\subsection{\class{time} Objects \label{datetime-time}}
|
\subsection{\class{time} Objects \label{datetime-time}}
|
||||||
|
|
||||||
A time object represents an idealized time of day, independent of day
|
A \class{time} object represents an idealized time of day, independent
|
||||||
and timezone.
|
of day and timezone.
|
||||||
|
|
||||||
Constructor:
|
\begin{funcdesc}{hour=0, minute=0, second=0, microsecond=0}
|
||||||
|
|
||||||
time(hour=0, minute=0, second=0, microsecond=0)
|
|
||||||
|
|
||||||
All arguments are optional. They may be ints or longs, in the
|
All arguments are optional. They may be ints or longs, in the
|
||||||
following ranges:
|
following ranges:
|
||||||
|
|
||||||
0 <= hour < 24
|
\begin{itemize}
|
||||||
0 <= minute < 60
|
\item \code{0 <= \var{hour} < 24}
|
||||||
0 <= second < 60
|
\item \code{0 <= \var{minute} < 60}
|
||||||
0 <= microsecond < 1000000
|
\item \code{0 <= \var{second} < 60}
|
||||||
|
\item \code{0 <= \var{microsecond} < 1000000}
|
||||||
|
\end{itemize}
|
||||||
|
|
||||||
If an argument outside those ranges is given,
|
If an argument outside those ranges is given, \exception{ValueError} is
|
||||||
\exception{ValueError} is raised.
|
raised.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
Class attributes:
|
Class attributes:
|
||||||
|
|
||||||
|
@ -1423,7 +1424,7 @@ Type-check macros:
|
||||||
PyDelta_CheckExact(op)
|
PyDelta_CheckExact(op)
|
||||||
|
|
||||||
PyTZInfo_Check(op)
|
PyTZInfo_Check(op)
|
||||||
PyTZInfo_CheckExact(op
|
PyTZInfo_CheckExact(op)
|
||||||
|
|
||||||
Accessor macros:
|
Accessor macros:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue