activate
Set the time zone for the current thread.
The timezone argument must be an instance of a tzinfo subclass or a
time zone name.
def activate(
timezone: tzinfo|str
) - > null
Set the time zone for the current thread.
Parameters
| Name | Type | Description |
|---|---|---|
| timezone | `tzinfo | str` |
Returns
| Type | Description |
|---|---|
null | Nothing is returned; the thread-local state is updated in place. |