Package zope :: Package interface :: Package common :: Module idatetime :: Class IDateTimeClass
[show private | hide private]
[frames | no frames]

Type IDateTimeClass

Interface --+
            |
           IDateTimeClass

Known Subclasses:
IDateTime

This is the datetime class interface.
Class Variable Summary
str combine = "Return a new datetime object.\n\n        Its ...
str fromordinal = 'Return the datetime from the proleptic Gr...
str fromtimestamp = "Return the local date and time correspo...
str max = 'The latest representable datetime'
str min = 'The earliest representable datetime'
str now = "Return the current local date and time.\n\n      ...
str resolution = 'The smallest possible difference between n...
str today = 'Return the current local datetime, with tzinfo ...
str utcfromtimestamp = "Return the UTC datetime from the POS...
str utcnow = 'Return the current UTC date and time, with tzi...

Class Variable Details

combine

Type:
str
Value:
"""Return a new datetime object.

        Its date members are equal to the given date object's, and who\
se time
        and tzinfo members are equal to the given time object's. For a\
ny
        datetime object d, d == datetime.combine(d.date(), d.timetz())\
.
...                                                                    

fromordinal

Type:
str
Value:
'''Return the datetime from the proleptic Gregorian ordinal.

        January 1 of year 1 has ordinal 1. ValueError is raised unless
        1 <= ordinal <= datetime.max.toordinal().
        The hour, minute, second and microsecond of the result are all\
 0, and
        tzinfo is None.
        '''                                                            

fromtimestamp

Type:
str
Value:
"""Return the local date and time corresponding to the POSIX timestamp\
.

        Same as is returned by time.time(). If optional argument tz is\
 None or
        not specified, the timestamp is converted to the platform's lo\
cal date
        and time, and the returned datetime object is naive.
...                                                                    

max

Type:
str
Value:
'The latest representable datetime'                                    

min

Type:
str
Value:
'The earliest representable datetime'                                  

now

Type:
str
Value:
"""Return the current local date and time.

        If optional argument tz is None or not specified, this is like\
 today(),
        but, if possible, supplies more precision than can be gotten f\
rom going
        through a time.time() timestamp (for example, this may be poss\
ible on
...                                                                    

resolution

Type:
str
Value:
'The smallest possible difference between non-equal datetime objects'  

today

Type:
str
Value:
'''Return the current local datetime, with tzinfo None.

        This is equivalent to datetime.fromtimestamp(time.time()).
        See also now(), fromtimestamp().
        '''                                                            

utcfromtimestamp

Type:
str
Value:
"""Return the UTC datetime from the POSIX timestamp with tzinfo None.

        This may raise ValueError, if the timestamp is out of the rang\
e of
        values supported by the platform C gmtime() function. It's com\
mon for
        this to be restricted to years in 1970 through 2038.

...                                                                    

utcnow

Type:
str
Value:
'''Return the current UTC date and time, with tzinfo None.

        This is like now(), but returns the current UTC date and time,\
 as a
        naive datetime object. 

        See also now().
        '''                                                            

Generated by Epydoc 2.1 on Fri Jun 24 12:01:21 2005 http://epydoc.sf.net