anuga.Domain.set_timezone

Domain.set_timezone(tz=None)[source]

Set timezone for domain

Parameters:

tz – either a timezone object or string

We recommend using the ZoneInfo provided by zoneinfo. Default is ZoneInfo(‘UTC’)

Example: Set default timezone UTC

>>> domain.set_timezone()

Example: Set timezone using tsdata string

>>> domain.set_timezone('Australia/Syndey')

Example: Set timezone using ZoneInfo timezone

>>> from zoneinfo import ZoneInfo
>>> new_tz = ZoneInfo('Australia/Sydney')
>>> domain.set_timezone(new_tz)