Index: concrete.tex =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/api/concrete.tex,v retrieving revision 1.44 diff --unified -r1.44 concrete.tex --- concrete.tex 8 Jun 2004 02:58:50 -0000 1.44 +++ concrete.tex 14 Jun 2004 15:17:41 -0000 @@ -2646,3 +2646,93 @@ Create and return a new generator object based on the \var{frame} object. The parameter must not be \NULL. \end{cfuncdesc} + + +\subsection{Date Time Objects \label{datetime-objects}} + +Datetime objects are returned from the datetime module. Before using any of +these functions, the file must be included in your source and +the function PyDateTime_IMPORT() must be called. + +\begin{cfuncdesc}{int}{PyDate_Check}{ob} + Return true if \var{ob} is a date object; \var{ob} must not be + \NULL. +\end{cfuncdesc} + +\begin{cfuncdesc}{int}{PyDate_CheckExact}{ob} + Return true if \var{ob}'s type is the date object defined in the datetime + module; \var{ob} must not be + \NULL. +\end{cfuncdesc} + +\begin{cfuncdesc}{int}{PyDateTime_Check}{ob} + Return true if \var{ob} is a datetime object; \var{ob} must not be + \NULL. +\end{cfuncdesc} + +\begin{cfuncdesc}{int}{PyDateTime_CheckExact}{ob} + Return true if \var{ob}'s type is the datetime object defined in the datetime + module; \var{ob} must not be + \NULL. +\end{cfuncdesc} + +\begin{cfuncdesc}{int}{PyTime_Check}{ob} + Return true if \var{ob} is a time object; \var{ob} must not be + \NULL. +\end{cfuncdesc} + +\begin{cfuncdesc}{int}{PyTime_CheckExact}{ob} + Return true if \var{ob}'s type is the time object defined in the datetime + module; \var{ob} must not be + \NULL. +\end{cfuncdesc} + +\begin{cfuncdesc}{int}{PyDelta_Check}{ob} + Return true if \var{ob} is a delta object; \var{ob} must not be + \NULL. +\end{cfuncdesc} + +\begin{cfuncdesc}{int}{PyDelta_CheckExact}{ob} + Return true if \var{ob}'s type is the delta object defined in the datetime + module; \var{ob} must not be + \NULL. +\end{cfuncdesc} + +\begin{cfuncdesc}{int}{PyTZInfo_Check}{ob} + Return true if \var{ob} is a time zone info object; \var{ob} must not be + \NULL. +\end{cfuncdesc} + +\begin{cfuncdesc}{int}{PyTZInfo_CheckExact}{ob} + Return true if \var{ob}'s type is the time zone info object defined in the + datetime module; \var{ob} must not be + \NULL. +\end{cfuncdesc} + +\begin{cfuncdesc}{PyObject*}{PyDate_FromDate}{int year, int month, int day} + Create and return a new date object with the specified year, month and day. +\end{cfuncdesc} + +\begin{cfuncdesc}{PyObject*}{PyDate_FromDateAndTime}{int year, int month, + int day, int hour, int minute, int second, int usecond} + Create and return a new datetime object with the specified year, month, day, + hour, minute, second and microsecond. +\end{cfuncdesc} + +\begin{cfuncdesc}{PyObject*}{PyTime_FromTime}{int hour, int minute, int second, + int usecond} + Create and return a new time object with the specified hour, minute, second + and microsecond. +\end{cfuncdesc} + +\begin{cfuncdesc}{PyObject*}{PyDateTime_FromTimestamp}{PyObject *args} + Create and return a new datetime object given the argument tuple suitable for + datetime.datetime.fromtimestamp(). This method is suitable for inclusion in + modules implementing the DB API and has very little benefit outside of that. +\end{cfuncdesc} + +\begin{cfuncdesc}{PyObject*}{PyDate_FromTimestamp}{PyObject *args} + Create and return a new date object given the argument tuple suitable for + datetime.date.fromtimestamp(). This method is suitable for inclusion in + modules implementing the DB API and has very little benefit outside of that. +\end{cfuncdesc}