Package DateHandler :: Module _DateDisplay :: Class DateDisplay
[frames] | no frames]

Class DateDisplay

source code


Instance Methods
 
__init__(self, format=None) source code
 
set_format(self, format) source code
 
verify_format(self, format) source code
 
quote_display(self, date)
Similar to the display task, except that if the value is a text only value, it is enclosed in quotes.
source code
 
display(self, date)
Return a text string representing the date.
source code
 
display_iso(self, date_val) source code
 
text_display(self, date)
Similar to the display task, except that if the value is a text only value, it is enclosed in quotes.
source code
Class Variables
  MONS = ('', u'Jan', u'Feb', u'Mar', u'Apr', u'May', u'Jun', u'...
  hebrew = ('', 'Tishri', 'Heshvan', 'Kislev', 'Tevet', 'Shevat'...
  french = (u'', u'Vendémiaire', u'Brumaire', u'Frimaire', u'Niv...
  persian = ('', 'Farvardin', 'Ordibehesht', 'Khordad', 'Tir', '...
  islamic = ('', 'Muharram', 'Safar', 'Rabi`al-Awwal', 'Rabi`ath...
  formats = ('YYYY-MM-DD (ISO)')
  calendar = ('', ' (Julian)', ' (Hebrew)', ' (French Republican...
Class Variable Details

MONS

Value:
('',
 u'Jan',
 u'Feb',
 u'Mar',
 u'Apr',
 u'May',
 u'Jun',
 u'Jul',
...

hebrew

Value:
('',
 'Tishri',
 'Heshvan',
 'Kislev',
 'Tevet',
 'Shevat',
 'AdarI',
 'AdarII',
...

french

Value:
(u'',
 u'Vendémiaire',
 u'Brumaire',
 u'Frimaire',
 u'Nivôse',
 u'Pluviôse',
 u'Ventôse',
 u'Germinal',
...

persian

Value:
('',
 'Farvardin',
 'Ordibehesht',
 'Khordad',
 'Tir',
 'Mordad',
 'Shahrivar',
 'Mehr',
...

islamic

Value:
('',
 'Muharram',
 'Safar',
 'Rabi`al-Awwal',
 'Rabi`ath-Thani',
 'Jumada l-Ula',
 'Jumada t-Tania',
 'Rajab',
...

calendar

Value:
('',
 ' (Julian)',
 ' (Hebrew)',
 ' (French Republican)',
 ' (Persian)',
 ' (Islamic)')