class documentation

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_change_allowed Class method used to query whether or not this class allows time zone changes.
Class Method tz_change_disallowed_message Generate instructions on how to allow tz changes
Method __enter__ Undocumented
Method __exit__ Undocumented
Method __init__ Undocumented
Method get_current_tz Undocumented
Method set_current_tz Undocumented
Instance Variable tzval Undocumented
Class Variable _guard_allows_change Undocumented
Class Variable _guard_var_name Undocumented
Instance Variable _old_tz Undocumented
@classmethod
def tz_change_allowed(cls): (source)

Class method used to query whether or not this class allows time zone changes.

@classmethod
def tz_change_disallowed_message(cls): (source)

Generate instructions on how to allow tz changes

def __enter__(self): (source)

Undocumented

def __exit__(self, type, value, traceback): (source)

Undocumented

def __init__(self, tzval): (source)

Undocumented

def get_current_tz(self): (source)
def set_current_tz(self): (source)
tzval = (source)

Undocumented

_guard_allows_change: bool = (source)

Undocumented

_guard_var_name: str = (source)

Undocumented

_old_tz = (source)

Undocumented