spectrochempy.NDDataset.timezone

property NDDataset.timezone

Return the timezone information.

A timezone’s offset refers to how many hours the timezone is from Coordinated Universal Time (UTC).

A naive datetime object contains no timezone information. The easiest way to tell if a datetime object is naive is by checking tzinfo. will be set to None of the object is naive.

A naive datetime object is limited in that it cannot locate itself in relation to offset-aware datetime objects.

In spectrochempy, all datetimes are stored in UTC, so that conversion must be done during the display of these datetimes using tzinfo.