class TimeFormat(Formatter): (source)
Known subclasses: django.utils.dateformat.DateFormat
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 |
Undocumented |
Inherited from Formatter
:
Method | format |
Undocumented |
Time, in 12-hour hours and minutes, with minutes left off if they're zero. Examples: '1', '1:30', '2:05', '2' Proprietary extension.
Difference to Greenwich time in hours; e.g. '+0200', '-0430'. If timezone information is not available, return an empty string.
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.
Time zone of this machine; e.g. 'EST' or 'MDT'. If timezone information is not available, return an empty string.