sunpeek.common.time_zone.get_data_timezone#

sunpeek.common.time_zone.get_data_timezone(tz_offset_minutes)#

Returns a pytz fixed-offset timezone, corresponding to winter time (no DST) in the given location.

Parameters:
  • tz_offset_minutes (float, Time zone offset from UTC in minutes. Use get_timezone_offset_minutes() to calculate)

  • longitude). (this offset for a given location (latitude and)

Return type:

pytz._FixedOffset, the pytz time zone to be used for data.

Notes

To avoid problems switching to DST (daylight saving time) and back, a fixed-offset time zone is used in SunPeek. This is equivalent to the winter time zone, in the respective location. For a detailed exchange about this, see sunpeek/sunpeek#351