|
|
|
|
|
|
|
|
to_timestamp(dt)
Return the corresponding POSIX timestamp |
source code
|
|
|
|
to_utimestamp(dt)
Return a microsecond POSIX timestamp for the given datetime. |
source code
|
|
|
|
from_utimestamp(ts)
Return the datetime for the given microsecond POSIX timestamp. |
source code
|
|
|
|
|
|
|
|
|
|
format_date(t=None,
format='%x',
tzinfo=None,
locale=None)
Convenience method for formatting the date part of a datetime object. |
source code
|
|
|
|
format_time(t=None,
format='%X',
tzinfo=None,
locale=None)
Convenience method for formatting the time part of a datetime object. |
source code
|
|
|
|
|
|
|
|
|
|
get_month_names_jquery_ui(req)
Get the month names for the jQuery UI datepicker library |
source code
|
|
|
|
get_day_names_jquery_ui(req)
Get the day names for the jQuery UI datepicker library |
source code
|
|
|
|
get_date_format_jquery_ui(locale)
Get the date format for the jQuery UI datepicker library. |
source code
|
|
|
|
get_time_format_jquery_ui(locale)
Get the time format for the jQuery UI timepicker addon. |
source code
|
|
|
|
get_timezone_list_jquery_ui(t=None)
Get timezone list for jQuery timepicker addon |
source code
|
|
|
|
get_first_week_day_jquery_ui(req)
Get first week day for jQuery date picker |
source code
|
|
|
|
|
|
|
|
|
|
is_24_hours(locale)
Returns True for 24 hour time formats. |
source code
|
|
|
|
http_date(t=None)
Format datetime object t as a rfc822 timestamp |
source code
|
|
|
|
parse_date(text,
tzinfo=None,
locale=None,
hint='date') |
source code
|
|
|
|
user_time(req,
func,
*args,
**kwargs)
A helper function which passes to tzinfo and locale keyword
arguments of func using req parameter. |
source code
|
|
|
|
timezone(tzname)
Fetch timezone instance by name or raise KeyError |
source code
|
|
|
|
get_timezone(tzname)
Fetch timezone instance by name or return None |
source code
|
|
|
|
datetime_now(...)
[tz] -> new datetime with tz's local day and time. |
source code
|
|
|
|
utc = <FixedOffset "UTC" 0:00:00>
|
|
|
utcmin = datetime.datetime(1, 1, 1, 0, 0, tzinfo=<FixedOffset ...
|
|
|
utcmax = datetime.datetime(9999, 12, 31, 23, 59, 59, 999999, t...
|
|
|
localtz = <LocalTimezone "CET" 1:00:00 "CEST" 2:00:00>
|
|
|
STDOFFSET = datetime.timedelta(0, 3600)
|
|
|
DSTOFFSET = datetime.timedelta(0, 7200)
|
|
|
DSTDIFF = datetime.timedelta(0, 3600)
|
|
|
all_timezones = ['Africa/Abidjan', 'Africa/Accra', 'Africa/Add...
|
|
|
__package__ = 'trac.util'
|
|
|
tz = <FixedOffset "GMT +14:00" 14:00:00>
|
|
|
tzname = 'UTC'
|
|
|
z = <FixedOffset "GMT +14:00" 14:00:00>
|