mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Revert the previous change; this is now dealt with in a better way.
This commit is contained in:
parent
6675881aab
commit
c5528b1f5c
1 changed files with 54 additions and 0 deletions
|
@ -1398,3 +1398,57 @@ C standard added additional format codes.
|
|||
The exact range of years for which \method{strftime()} works also
|
||||
varies across platforms. Regardless of platform, years before 1900
|
||||
cannot be used.
|
||||
|
||||
|
||||
\begin{comment}
|
||||
|
||||
\subsection{C API}
|
||||
|
||||
Struct typedefs:
|
||||
|
||||
PyDateTime_Date
|
||||
PyDateTime_DateTime
|
||||
PyDateTime_Time
|
||||
PyDateTime_Delta
|
||||
PyDateTime_TZInfo
|
||||
|
||||
Type-check macros:
|
||||
|
||||
PyDate_Check(op)
|
||||
PyDate_CheckExact(op)
|
||||
|
||||
PyDateTime_Check(op)
|
||||
PyDateTime_CheckExact(op)
|
||||
|
||||
PyTime_Check(op)
|
||||
PyTime_CheckExact(op)
|
||||
|
||||
PyDelta_Check(op)
|
||||
PyDelta_CheckExact(op)
|
||||
|
||||
PyTZInfo_Check(op)
|
||||
PyTZInfo_CheckExact(op)
|
||||
|
||||
Accessor macros:
|
||||
|
||||
All objects are immutable, so accessors are read-only. All macros
|
||||
return ints:
|
||||
|
||||
For \class{date} and \class{datetime} instances:
|
||||
PyDateTime_GET_YEAR(o)
|
||||
PyDateTime_GET_MONTH(o)
|
||||
PyDateTime_GET_DAY(o)
|
||||
|
||||
For \class{datetime} instances:
|
||||
PyDateTime_DATE_GET_HOUR(o)
|
||||
PyDateTime_DATE_GET_MINUTE(o)
|
||||
PyDateTime_DATE_GET_SECOND(o)
|
||||
PyDateTime_DATE_GET_MICROSECOND(o)
|
||||
|
||||
For \class{time} instances:
|
||||
PyDateTime_TIME_GET_HOUR(o)
|
||||
PyDateTime_TIME_GET_MINUTE(o)
|
||||
PyDateTime_TIME_GET_SECOND(o)
|
||||
PyDateTime_TIME_GET_MICROSECOND(o)
|
||||
|
||||
\end{comment}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue