| Trees | Indices | Help |
|
|---|
'%x %X',
tzinfo=None)t into an unicode string
source code
'%x',
tzinfo=None)'%X',
tzinfo=None)'date')
source code
<FixedOffset "UTC" 0:00:00>
datetime.datetime(1, 1, 1, 0, 0, tzinfo=<FixedOffset ...
datetime.datetime(9999, 12, 31, 23, 59, 59, 999999, t...
<LocalTimezone "CET" 1:00:00 "CEST" 2:00:00>
datetime.timedelta(0, 3600)
datetime.timedelta(0, 7200)
datetime.timedelta(0, 3600)
['Africa/Abidjan', 'Africa/Accra', 'Africa/Add...
'trac.util'
<FixedOffset "GMT +13:00" 13:00:00>
'UTC'
<FixedOffset "GMT +13:00" 13:00:00>
Imports: locale, math, re, sys, time, tzinfo, timedelta, datetime, date, TracError, to_unicode, getpreferredencoding, _, ngettext, bisect, pytz
Convert ``t`` into a `datetime` object in the ``tzinfo`` timezone. If no ``tzinfo`` is given, the local timezone `localtz` will be used. ``t`` is converted using the following rules: - If ``t`` is already a `datetime` object, - if it is timezone-"naive", it is localized to ``tzinfo`` - if it is already timezone-aware, ``t`` is mapped to the given timezone (`datetime.datetime.astimezone`) - If ``t`` is None, the current time will be used. - If ``t`` is a number, it is interpreted as a timestamp. Any other input will trigger a `TypeError`. All returned datetime instances are timezone aware and normalized.
Calculate time delta between two datetime objects. (the result is somewhat imprecise, only use for prettyprinting).
If either time1 or time2 is None, the current time will be used
instead.
'%x %X',
tzinfo=None)
Format the datetime object t into an unicode string
If t is None, the current time will be used.
The formatting will be done using the given format, which consist
of conventional strftime keys. In addition the format can be 'iso8601'
to specify the international date format (compliant with RFC 3339).
tzinfo will default to the local timezone if left to None.
'%x',
tzinfo=None)
'%X',
tzinfo=None)
datetime.datetime(1, 1, 1, 0, 0, tzinfo=<FixedOffset "UTC" 0:00:00>)