~ubuntu-branches/ubuntu/natty/python2.6/natty-security

« back to all changes in this revision

Viewing changes to Doc/c-api/datetime.rst

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-07-02 10:54:17 UTC
  • mfrom: (10.1.21 sid)
  • Revision ID: james.westby@ubuntu.com-20100702105417-3a70t966vh62djgg
Tags: 2.6.5+20100628-2ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Priority for python2.6-minimal is required instead of optional
  - python2.6-minimal and python2.6 Conflict python-central
    (<< 0.6.11ubuntu6)

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
Various date and time objects are supplied by the :mod:`datetime` module.
9
9
Before using any of these functions, the header file :file:`datetime.h` must be
10
10
included in your source (note that this is not included by :file:`Python.h`),
11
 
and the macro :cfunc:`PyDateTime_IMPORT` must be invoked.  The macro puts a
12
 
pointer to a C structure into a static variable,  ``PyDateTimeAPI``, that is
13
 
used by the following macros.
 
11
and the macro :cmacro:`PyDateTime_IMPORT` must be invoked, usually as part of
 
12
the module initialisation function.  The macro puts a pointer to a C structure
 
13
into a static variable, :cdata:`PyDateTimeAPI`, that is used by the following
 
14
macros.
14
15
 
15
16
Type-check macros:
16
17