datetime

Methods

Method Reference: datetime.zoneNameStyle

datetime: style = datetime.zoneNameStyle ()
datetime: datetime.zoneNameStyle (style)

Query or set the session-wide style used to render time-zone names.

The z, zz, and zzz fields of a display Format render a time-zone name. Two styles are available, selected by this session-wide preference:

'iana' (default)
The IANA time-zone database abbreviation active at each instant, such as EDT, EEST, JST, or UTC. This is an Octave-specific extension: a named abbreviation is shown for every zone.
'matlab'
MATLAB-compatible rendering: a named abbreviation is shown only for the North American zones plus GMT and UTC; every other zone renders as a numeric UTC offset such as UTC+3 or UTC+5:30.

style = datetime.zoneNameStyle () returns the current style. datetime.zoneNameStyle (style) sets it to style, either 'iana' or 'matlab'. The setting persists for the current Octave session.

An individual Format string can override the session style with the Octave-specific fields zzzz (force 'iana') and zzzzz (force 'matlab').

Source Code: datetime