class documentation

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 Time, in 12-hour hours and minutes, with minutes left off if they're zero. Examples: '1', '1:30', '2:05', '2' Proprietary extension.
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 Time, in 12-hour hours, minutes and 'a.m.'/'p.m.', with minutes left off if they're zero and the strings 'midnight' and 'noon' if appropriate. Examples: '1 a.m.', '1:30 p.m.', 'midnight', 'noon', '12:30 p...
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): (source)

Month, textual, 3 letters, lowercase; e.g. 'jan'

def c(self): (source)

ISO 8601 Format Example : '2008-01-02T10:30:00.000123'

def d(self): (source)

Day of the month, 2 digits with leading zeros; i.e. '01' to '31'

def D(self): (source)

Day of the week, textual, 3 letters; e.g. 'Fri'

def E(self): (source)

Alternative month names as required by some locales. Proprietary extension.

def F(self): (source)

Month, textual, long; e.g. 'January'

def I(self): (source)

'1' if daylight saving time, '0' otherwise.

def j(self): (source)

Day of the month without leading zeros; i.e. '1' to '31'

def l(self): (source)

Day of the week, textual, long; e.g. 'Friday'

def L(self): (source)

Boolean for whether it is a leap year; i.e. True or False

def m(self): (source)

Month; i.e. '01' to '12'

def M(self): (source)

Month, textual, 3 letters; e.g. 'Jan'

def n(self): (source)

Month without leading zeros; i.e. '1' to '12'

def N(self): (source)

Month abbreviation in Associated Press style. Proprietary extension.

def o(self): (source)

ISO 8601 year number matching the ISO week number (W)

def r(self): (source)

RFC 5322 formatted date; e.g. 'Thu, 21 Dec 2000 16:01:07 +0200'

def S(self): (source)

English ordinal suffix for the day of the month, 2 characters; i.e. 'st', 'nd', 'rd' or 'th'.

def t(self): (source)

Number of days in the given month; i.e. '28' to '31'

def U(self): (source)

Seconds since the Unix epoch (January 1 1970 00:00:00 GMT)

def w(self): (source)

Day of the week, numeric, i.e. '0' (Sunday) to '6' (Saturday)

def W(self): (source)

ISO-8601 week number of year, weeks starting on Monday

def y(self): (source)

Year, 2 digits with leading zeros; e.g. '99'.

def Y(self): (source)

Year, 4 digits with leading zeros; e.g. '1999'.

def z(self): (source)

Day of the year, i.e. 1 to 366.