Home | Trees | Index | Help |
|
---|
Package lemon :: Module date |
|
Date and time classes. By default importing this module imports the Python > 2.3 datetime classes. Otherwise the less powerful and robust lemon ones are used. This module is really just meant to be the minimum dat implementation that can be got away with to enable lemon to work with Python < 2.3. Documentation ------------- See the Python 2.3 datetime module for documentation on the time, date and datetime classes. WARNING: These versions do not properly check to make sure the date you specified is valid. now() returns the current date and time as a datetime object. isodatetime2tuple(sql), isotime2tuple(sql) and isodate2tuple(sql) take a standard isoformat string as would be returned from an sql query and return the appropriate date or time object. WARNING: Parts of seconds are ignored.
Function Summary | |
---|---|
Returns the date and time as a python tuple as constructed by time.localtime(). | |
Returns the date and time as a python tuple as constructed by time.localtime(). | |
Returns the date and time as a python tuple as constructed by time.localtime(). | |
Return the current date and time as a datetime. |
Function Details |
---|
isodate2tuple(sql)Returns the date and time as a python tuple as constructed by time.localtime(). WARNING: The last 3 entries in the tuple are obtained from time.localtime() and do not represent anything. |
isodatetime2tuple(sql)Returns the date and time as a python tuple as constructed by time.localtime(). WARNING: The last 3 entries in the tuple are obtained from time.localtime() and do not represent anything. |
isotime2tuple(sql)Returns the date and time as a python tuple as constructed by time.localtime(). WARNING: The last 3 entries in the tuple are obtained from time.localtime() and do not represent anything. |
now()Return the current date and time as a datetime. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Mon Nov 10 15:08:15 2003 | http://epydoc.sf.net |