class documentation

Undocumented

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:

Method format Undocumented
def __init__(self, obj): (source)

Undocumented

def a(self): (source)

'a.m.' or 'p.m.'

def A(self): (source)

'AM' or 'PM'

def e(self): (source)

Timezone name. If timezone information is not available, return an empty string.

def f(self): (source)

Time, in 12-hour hours and minutes, with minutes left off if they're zero. Examples: '1', '1:30', '2:05', '2' Proprietary extension.

def g(self): (source)

Hour, 12-hour format without leading zeros; i.e. '1' to '12'

def G(self): (source)

Hour, 24-hour format without leading zeros; i.e. '0' to '23'

def h(self): (source)

Hour, 12-hour format; i.e. '01' to '12'

def H(self): (source)

Hour, 24-hour format; i.e. '00' to '23'

def i(self): (source)

Minutes; i.e. '00' to '59'

def O(self): (source)

Difference to Greenwich time in hours; e.g. '+0200', '-0430'. If timezone information is not available, return an empty string.

def P(self): (source)

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.m.' Proprietary extension.

def s(self): (source)

Seconds; i.e. '00' to '59'

def T(self): (source)

Time zone of this machine; e.g. 'EST' or 'MDT'. If timezone information is not available, return an empty string.

def u(self): (source)

Microseconds; i.e. '000000' to '999999'

def Z(self): (source)

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. If timezone information is not available, return an empty string.

Undocumented

timezone = (source)

Undocumented

@property
_no_timezone_or_datetime_is_ambiguous_or_imaginary = (source)

Undocumented