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

Type IDateTime

Interface --+        
            |        
   IDateClass --+    
                |    
            IDate --+
                    |
    Interface --+   |
                |   |
   IDateTimeClass --+
                    |
                   IDateTime


Object contains all the information from a date object and a time object.
Class Variable Summary
method-wrapper __str__ = <method-wrapper object at 0xb487e0ac>
str astimezone = "Return a datetime object with new tzinfo m...
str combine = "Return a new datetime object.\n\n        Its ...
str ctime = "Return a string representing the date and time....
str date = 'Return date object with same year, month and day...
str day = 'Day between 1 and the number of days in the given...
str dst = 'Return 0 if DST is not in effect, or the DST offs...
str fromordinal = 'Return the date corresponding to the prol...
str fromtimestamp = "Return the local date from a POSIX time...
str hour = 'Hour in range(24)'
str isocalendar = 'Return a 3-tuple, (ISO year, ISO week num...
str isoformat = "Return a string representing the date and t...
str isoweekday = 'Return the day of the week as an integer.\...
str max = 'The latest representable date'
str microsecond = 'Microsecond in range(1000000)'
str min = 'The earliest representable date'
str minute = 'Minute in range(60)'
str month = 'Month between 1 and 12 inclusive'
str now = "Return the current local date and time.\n\n      ...
str replace = 'Return a datetime with the same members, exce...
str resolution = 'The smallest difference between non-equal ...
str second = 'Second in range(60)'
str strftime = 'Return a string representing the date and ti...
str time = 'Return time object with same hour, minute, secon...
str timetuple = 'Return a 9-element tuple of the form return...
str timetz = 'Return time object with same hour, minute, sec...
str today = 'Return the current local time.\n\n        This ...
str toordinal = 'Return the proleptic Gregorian ordinal of t...
str tzinfo = 'The object passed as the tzinfo argument to th...
str tzname = 'Return the timezone name.'
str utcfromtimestamp = "Return the UTC datetime from the POS...
str utcnow = 'Return the current UTC date and time, with tzi...
str utcoffset = 'Return the timezone offset in minutes east ...
str utctimetuple = 'Return UTC time tuple compatilble with t...
str weekday = 'Return the day of the week as an integer.\n\n...
str year = 'Year between MINYEAR and MAXYEAR inclusive'

Class Variable Details

__str__

Type:
method-wrapper
Value:
<method-wrapper object at 0xb487e0ac>                                  

astimezone

Type:
str
Value:
"""Return a datetime object with new tzinfo member tz, adjusting the
        date and time members so the result is the same UTC time as se\
lf, but
        in tz's local time.

        tz must be an instance of a tzinfo subclass, and its utcoffset\
() and
        dst() methods must not return None. self must be aware (self.t\
...                                                                    

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())\
.
...                                                                    

ctime

Type:
str
Value:
"""Return a string representing the date and time.

        datetime(2002, 12, 4, 20, 30, 40).ctime() == 'Wed Dec 4 20:30:\
40 2002'.
        d.ctime() is equivalent to time.ctime(time.mktime(d.timetuple(\
))) on
        platforms where the native C ctime() function (which time.ctim\
e()
...                                                                    

date

Type:
str
Value:
'Return date object with same year, month and day.'                    

day

Type:
str
Value:
'Day between 1 and the number of days in the given month of the year'  

dst

Type:
str
Value:
'''Return 0 if DST is not in effect, or the DST offset (in minutes
        eastward) if DST is in effect.
        '''                                                            

fromordinal

Type:
str
Value:
'''Return the date corresponding to the proleptic Gregorian ordinal.

         January 1 of year 1 has ordinal 1. ValueError is raised unles\
s
         1 <= ordinal <= date.max.toordinal().
         For any date d, date.fromordinal(d.toordinal()) == d.
         '''                                                           

fromtimestamp

Type:
str
Value:
"""Return the local date from a POSIX timestamp (like time.time())

        This may raise ValueError, if the timestamp is out of the rang\
e of
        values supported by the platform C localtime() function. It's \
common
        for this to be restricted to years from 1970 through 2038. Not\
e that
...                                                                    

hour

Type:
str
Value:
'Hour in range(24)'                                                    

isocalendar

Type:
str
Value:
'''Return a 3-tuple, (ISO year, ISO week number, ISO weekday).

        The same as self.date().isocalendar().
        '''                                                            

isoformat

Type:
str
Value:
"""Return a string representing the date and time in ISO 8601 format.

        YYYY-MM-DDTHH:MM:SS.mmmmmm or YYYY-MM-DDTHH:MM:SS if microseco\
nd is 0

        If utcoffset() does not return None, a 6-character string is a\
ppended,
        giving the UTC offset in (signed) hours and minutes:
...                                                                    

isoweekday

Type:
str
Value:
'''Return the day of the week as an integer.

        Monday is 1 and Sunday is 7. The same as self.date().isoweekda\
y.
        See also weekday(), isocalendar().
        '''                                                            

max

Type:
str
Value:
'The latest representable date'                                        

microsecond

Type:
str
Value:
'Microsecond in range(1000000)'                                        

min

Type:
str
Value:
'The earliest representable date'                                      

minute

Type:
str
Value:
'Minute in range(60)'                                                  

month

Type:
str
Value:
'Month between 1 and 12 inclusive'                                     

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
...                                                                    

replace

Type:
str
Value:
'''Return a datetime with the same members, except for those members
        given new values by whichever keyword arguments are specified.

        Note that tzinfo=None can be specified to create a naive datet\
ime from
        an aware datetime with no conversion of date and time members.
        '''                                                            

resolution

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

second

Type:
str
Value:
'Second in range(60)'                                                  

strftime

Type:
str
Value:
'''Return a string representing the date and time.

        This is controlled by an explicit format string.
        '''                                                            

time

Type:
str
Value:
'''Return time object with same hour, minute, second, microsecond.

        tzinfo is None. See also method timetz().
        '''                                                            

timetuple

Type:
str
Value:
'Return a 9-element tuple of the form returned by time.localtime().'   

timetz

Type:
str
Value:
'''Return time object with same hour, minute, second, microsecond,
        and tzinfo.

        See also method time().
        '''                                                            

today

Type:
str
Value:
'''Return the current local time.

        This is equivalent to date.fromtimestamp(time.time())'''       

toordinal

Type:
str
Value:
'''Return the proleptic Gregorian ordinal of the date.

        The same as self.date().toordinal().
        '''                                                            

tzinfo

Type:
str
Value:
'''The object passed as the tzinfo argument to the datetime constructo\
r
        or None if none was passed'''                                  

tzname

Type:
str
Value:
'Return the timezone name.'                                            

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().
        '''                                                            

utcoffset

Type:
str
Value:
'''Return the timezone offset in minutes east of UTC (negative west of
        UTC).'''                                                       

utctimetuple

Type:
str
Value:
'Return UTC time tuple compatilble with time.gmtimr().'                

weekday

Type:
str
Value:
'''Return the day of the week as an integer.

        Monday is 0 and Sunday is 6. The same as self.date().weekday()\
.
        See also isoweekday().
        '''                                                            

year

Type:
str
Value:
'Year between MINYEAR and MAXYEAR inclusive'                           

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