| Home | Trees | Index | Help |
|
|---|
| Package lemon :: Package db :: Module date :: Class Date |
|
DateTime --+
|
Date
Constructs an object holding a time value. Is just another name binding for DateTime(). The time part is set to '00:00:00.00'.
| Method Summary | |
|---|---|
__init__(self,
year,
month,
day,
sql,
obj)
| |
Return the date as a standard SQL string. | |
| Inherited from DateTime | |
| |
Enable dictionary-style attribute reading for year, month, day, hour, minute and second. | |
Return the object as standard SQL. | |
Return the date as a standard SQL string of the format 'YYYY-MM-DD'. | |
Return the date and time as a standard SQL string of the format 'YYYY-MM-DD HH:MM::SS.ss'. | |
Return the time as a standard SQL string in the format 'HH:MM::SS.ss'. | |
Return the date and time as a standard SQL timestamp string of the format 'YYYYMMDDHHMMSS'. | |
| |
Returns the date and time as a python tuple as constructed by time.localtime(). | |
Private function to add an appropriate number of zeros to s such that len(s) is num. | |
| |
| |
| Method Details |
|---|
asSQL(self)Return the date as a standard SQL string.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Mon Nov 10 15:07:58 2003 | http://epydoc.sf.net |