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

Class DateDisplayEn

source code


English language date display class.

Instance Methods
 
__init__(self, format=None)
Create a DateDisplay class that converts a Date object to a string of the desired format.
source code
 
display(self, date)
Return 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: MONS, calendar, french, hebrew, islamic, persian

Method Details

__init__(self, format=None)
(Constructor)

source code 

Create 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 

Return 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')