class documentation

class DateFormat(TimeFormat):

View In Hierarchy

Undocumented

Method b Month, textual, 3 letters, lowercase; e.g. 'jan'
Method c ISO 8601 Format Example : '2008-01-02T10:30:00.000123'
Method d Day of the month, 2 digits with leading zeros; i.e. '01' to '31'
Method D Day of the week, textual, 3 letters; e.g. 'Fri'
Method E Alternative month names as required by some locales. Proprietary extension.
Method F Month, textual, long; e.g. 'January'
Method I '1' if daylight saving time, '0' otherwise.
Method j Day of the month without leading zeros; i.e. '1' to '31'
Method l Day of the week, textual, long; e.g. 'Friday'
Method L Boolean for whether it is a leap year; i.e. True or False
Method m Month; i.e. '01' to '12'
Method M Month, textual, 3 letters; e.g. 'Jan'
Method n Month without leading zeros; i.e. '1' to '12'
Method N Month abbreviation in Associated Press style. Proprietary extension.
Method o ISO 8601 year number matching the ISO week number (W)
Method r RFC 5322 formatted date; e.g. 'Thu, 21 Dec 2000 16:01:07 +0200'
Method S English ordinal suffix for the day of the month, 2 characters; i.e. 'st', 'nd', 'rd' or 'th'
Method t Number of days in the given month; i.e. '28' to '31'
Method U Seconds since the Unix epoch (January 1 1970 00:00:00 GMT)
Method w Day of the week, numeric, i.e. '0' (Sunday) to '6' (Saturday)
Method W ISO-8601 week number of year, weeks starting on Monday
Method y Year, 2 digits with leading zeros; e.g. '99'.
Method Y Year, 4 digits with leading zeros; e.g. '1999'.
Method z Day of the year, i.e. 1 to 366.

Inherited from TimeFormat:

Method __init__ Undocumented
Method a 'a.m.' or 'p.m.'
Method A 'AM' or 'PM'
Method e Timezone name.
Method f No summary
Method g Hour, 12-hour format without leading zeros; i.e. '1' to '12'
Method G Hour, 24-hour format without leading zeros; i.e. '0' to '23'
Method h Hour, 12-hour format; i.e. '01' to '12'
Method H Hour, 24-hour format; i.e. '00' to '23'
Method i Minutes; i.e. '00' to '59'
Method O Difference to Greenwich time in hours; e.g. '+0200', '-0430'.
Method P No summary
Method s Seconds; i.e. '00' to '59'
Method T Time zone of this machine; e.g. 'EST' or 'MDT'.
Method u Microseconds; i.e. '000000' to '999999'
Method Z Time zone offset in seconds (i.e. '-43200' to '43200'). The offset for timezones west of UTC is always negative, and for those east of UTC is always positive.
Instance Variable data Undocumented
Instance Variable timezone Undocumented
Property ​_no​_timezone​_or​_datetime​_is​_ambiguous​_or​_imaginary Undocumented

Inherited from Formatter (via TimeFormat):

Method format Undocumented
def b(self):
Month, textual, 3 letters, lowercase; e.g. 'jan'
def c(self):
ISO 8601 Format Example : '2008-01-02T10:30:00.000123'
def d(self):
Day of the month, 2 digits with leading zeros; i.e. '01' to '31'
def D(self):
Day of the week, textual, 3 letters; e.g. 'Fri'
def E(self):
Alternative month names as required by some locales. Proprietary extension.
def F(self):
Month, textual, long; e.g. 'January'
def I(self):
'1' if daylight saving time, '0' otherwise.
def j(self):
Day of the month without leading zeros; i.e. '1' to '31'
def l(self):
Day of the week, textual, long; e.g. 'Friday'
def L(self):
Boolean for whether it is a leap year; i.e. True or False
def m(self):
Month; i.e. '01' to '12'
def M(self):
Month, textual, 3 letters; e.g. 'Jan'
def n(self):
Month without leading zeros; i.e. '1' to '12'
def N(self):
Month abbreviation in Associated Press style. Proprietary extension.
def o(self):
ISO 8601 year number matching the ISO week number (W)
def r(self):
RFC 5322 formatted date; e.g. 'Thu, 21 Dec 2000 16:01:07 +0200'
def S(self):
English ordinal suffix for the day of the month, 2 characters; i.e. 'st', 'nd', 'rd' or 'th'
def t(self):
Number of days in the given month; i.e. '28' to '31'
def U(self):
Seconds since the Unix epoch (January 1 1970 00:00:00 GMT)
def w(self):
Day of the week, numeric, i.e. '0' (Sunday) to '6' (Saturday)
def W(self):
ISO-8601 week number of year, weeks starting on Monday
def y(self):
Year, 2 digits with leading zeros; e.g. '99'.
def Y(self):
Year, 4 digits with leading zeros; e.g. '1999'.
def z(self):
Day of the year, i.e. 1 to 366.