Skip to main content

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

NameTypeDescription
timezone`tzinfostr`

Returns

TypeDescription
nullNothing is returned; the thread-local state is updated in place.