Package lemon :: Package db :: Module date :: Class Date
[show private | hide private]
[frames | no frames]

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)
  asSQL(self)
Return the date as a standard SQL string.
    Inherited from DateTime
  __cmp__(self, other)
  __getitem__(self, item)
Enable dictionary-style attribute reading for year, month, day, hour, minute and second.
  __str__(self)
Return the object as standard SQL.
  asSQLDate(self)
Return the date as a standard SQL string of the format 'YYYY-MM-DD'.
  asSQLDateTime(self)
Return the date and time as a standard SQL string of the format 'YYYY-MM-DD HH:MM::SS.ss'.
  asSQLTime(self)
Return the time as a standard SQL string in the format 'HH:MM::SS.ss'.
  asSQLTimestamp(self)
Return the date and time as a standard SQL timestamp string of the format 'YYYYMMDDHHMMSS'.
  list(self)
  tuple(self)
Returns the date and time as a python tuple as constructed by time.localtime().

Method Details

asSQL(self)

Return the date as a standard SQL string.
Overrides:
lemon.db.date.DateTime.asSQL

Generated by Epydoc 2.0 on Mon Nov 10 15:07:58 2003 http://epydoc.sf.net