class documentation
class TZContextBase(object): (source)
Known subclasses: dateutil.test._common.TZEnvContext
, dateutil.test._common.TZWinContext
Base class for a context manager which allows changing of time zones. Subclasses may define a guard variable to either block or or allow time zone changes by redefining ``_guard_var_name`` and ``_guard_allows_change``. The default is that the guard variable must be affirmatively set. Subclasses must define ``get_current_tz`` and ``set_current_tz``.
Class Method | tz |
Class method used to query whether or not this class allows time zone changes. |
Class Method | tz |
Generate instructions on how to allow tz changes |
Method | __enter__ |
Undocumented |
Method | __exit__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | get |
Undocumented |
Method | set |
Undocumented |
Instance Variable | tzval |
Undocumented |
Class Variable | _guard |
Undocumented |
Class Variable | _guard |
Undocumented |
Instance Variable | _old |
Undocumented |