class documentation

class TimeFormat(Formatter):

Known subclasses: django.utils.dateformat.DateFormat

View In Hierarchy

Undocumented

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:

Method format Undocumented
def __init__(self, obj):

Undocumented

def a(self):
'a.m.' or 'p.m.'
def A(self):
'AM' or 'PM'
def e(self):

Timezone name.

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

def f(self):
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):
Hour, 12-hour format without leading zeros; i.e. '1' to '12'
def G(self):
Hour, 24-hour format without leading zeros; i.e. '0' to '23'
def h(self):
Hour, 12-hour format; i.e. '01' to '12'
def H(self):
Hour, 24-hour format; i.e. '00' to '23'
def i(self):
Minutes; i.e. '00' to '59'
def O(self):

Difference to Greenwich time in hours; e.g. '+0200', '-0430'.

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

def P(self):
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):
Seconds; i.e. '00' to '59'
def T(self):

Time zone of this machine; e.g. 'EST' or 'MDT'.

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

def u(self):
Microseconds; i.e. '000000' to '999999'
def Z(self):

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.

data =

Undocumented

timezone =

Undocumented

@property
_no_timezone_or_datetime_is_ambiguous_or_imaginary =

Undocumented