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 timezone provided by the pytz modules. Default is pytz.utc
Example: Set default timezone UTC
>>> domain.set_timezone()
Example: Set timezone using pytz string
>>> domain.set_timezone('Australia/Syndey')
Example: Set timezone using pytz timezone
>>> new_tz = pytz.timezone('Australia/Sydney') >>> domain.set_timezone(new_tz)