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

Class DateDisplayEn

source code


English language date display class.

Instance Methods
 
__init__(self, format=None)
Creates a DateDisplay class that converts a Date object to a string of the desired format.
source code
 
display(self, date)
Returns a text string representing the date.
source code

Inherited from DateDisplay: display_iso, quote_display, set_format, text_display, verify_format

Class Variables
  formats = ('YYYY-MM-DD (ISO)', 'Numerical', 'Month Day, Year',...

Inherited from DateDisplay: calendar

Method Details

__init__(self, format=None)
(Constructor)

source code 
Creates a DateDisplay class that converts a Date object to a string of the desired format. The format value must correspond to the format list value (DateDisplay.format[]).
Overrides: DateDisplay.__init__

display(self, date)

source code 
Returns a text string representing the date.
Overrides: DateDisplay.display

Class Variable Details

formats

Value:
('YYYY-MM-DD (ISO)',
 'Numerical',
 'Month Day, Year',
 'MON DAY, YEAR',
 'Day Month Year',
 'DAY MON YEAR')