| Home | Trees | Indices | Help |
|
|---|
|
|
Provide time related exceptions and functions
|
|||
| TimeException | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
_interval_conv_dict = {"s": 1, "m": 60, "h": 3600, "D": 86400,
|
|||
_integer_regexp = re.compile("^[0-9]+$")
|
|||
_interval_regexp = re.compile("^([0-9]+)([smhDWMY])")
|
|||
_genstr_date_regexp1 = re.compile("^(?P<year>[0-9]{4})[-/]" "(
|
|||
_genstr_date_regexp2 = re.compile("^(?P<month>[0-9]{1,2})[-/]"
|
|||
_genstr_date_regexp3 = re.compile("^(?P<year>[0-9]{4})" "(?P<m
|
|||
curtimestr = Nonehash(x) |
|||
curtime = Nonehash(x) |
|||
prevtimestr = Nonehash(x) |
|||
prevtime = Nonehash(x) |
|||
bad_interval_string = _("""Bad interval string "
|
|||
bad_time_string = _("""Bad time string "
|
|||
|
|||
Return time in seconds from w3 or duplicity timestring If there is an error parsing the string, or it doesn't look like a valid datetime string, return None. |
Convert a string expressing an interval (e.g. "4D2s") to seconds |
Return w3's timezone identification string. Expresed as [+/-]hh:mm. For instance, PST is -08:00. Zone is coincides with what localtime(), etc., use. |
|
|||
_interval_conv_dict
|
_genstr_date_regexp1
|
_genstr_date_regexp2
|
_genstr_date_regexp3
|
bad_interval_string
|
bad_time_string
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Nov 25 13:38:16 2011 | http://epydoc.sourceforge.net |