Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
bfa68722
Commit
bfa68722
authored
Jul 16, 2003
by
Skip Montanaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Zap the C API subsection altogether for now. It's not actually usable from
C yet anyway.
parent
aa9b39f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
58 deletions
+0
-58
Doc/lib/libdatetime.tex
Doc/lib/libdatetime.tex
+0
-58
No files found.
Doc/lib/libdatetime.tex
View file @
bfa68722
...
...
@@ -1399,61 +1399,3 @@ The exact range of years for which \method{strftime()} works also
varies across platforms. Regardless of platform, years before 1900
cannot be used.
\subsection
{
C API
}
Struct typedefs:
\begin{verbatim}
PyDateTime
_
Date
PyDateTime
_
DateTime
PyDateTime
_
Time
PyDateTime
_
Delta
PyDateTime
_
TZInfo
\end{verbatim}
Type-check macros:
\begin{verbatim}
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)
\end{verbatim}
Accessor macros:
All objects are immutable, so accessors are read-only. All macros
return ints. For
\class
{
date
}
and
\class
{
datetime
}
instances:
\begin{verbatim}
PyDateTime
_
GET
_
YEAR(o)
PyDateTime
_
GET
_
MONTH(o)
PyDateTime
_
GET
_
DAY(o)
\end{verbatim}
For
\class
{
datetime
}
instances:
\begin{verbatim}
PyDateTime
_
DATE
_
GET
_
HOUR(o)
PyDateTime
_
DATE
_
GET
_
MINUTE(o)
PyDateTime
_
DATE
_
GET
_
SECOND(o)
PyDateTime
_
DATE
_
GET
_
MICROSECOND(o)
\end{verbatim}
For
\class
{
time
}
instances:
\begin{verbatim}
PyDateTime
_
TIME
_
GET
_
HOUR(o)
PyDateTime
_
TIME
_
GET
_
MINUTE(o)
PyDateTime
_
TIME
_
GET
_
SECOND(o)
PyDateTime
_
TIME
_
GET
_
MICROSECOND(o)
\end{verbatim}
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