class documentation
class TZEnvContext(TZContextBase): (source)
Context manager that temporarily sets the `TZ` variable (for use on *nix-like systems). Because the effect is local to the shell anyway, this will apply *unless* a guard is set. If you do not want the TZ environment variable set, you may set the ``DATEUTIL_MAY_NOT_CHANGE_TZ_VAR`` variable to a truthy value.
Method | get |
Undocumented |
Method | set |
Undocumented |
Class Variable | _guard |
Undocumented |
Class Variable | _guard |
Undocumented |
Inherited from TZContextBase
:
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 |
Instance Variable | tzval |
Undocumented |
Instance Variable | _old |
Undocumented |