pywws.TimeZone

Introduction

This module provides two datetime.tzinfo objects representing UTC and local time zones. These are used to convert timestamps to and from UTC and local time. The weather station software stores data with UTC timestamps, to avoid problems with daylight savings time, but the template and plot programs output data with local times.

The module is copied directly from the datetime.tzinfo module documentation.

Detailed API

Provide a couple of datetime.tzinfo() objects representing local time and UTC.

Copied directly from the datetime module documentation.

Classes

LocalTimezone Local time
UTC UTC
class pywws.TimeZone.UTC[source]

UTC

utcoffset(dt)[source]
tzname(dt)[source]
dst(dt)[source]
class pywws.TimeZone.LocalTimezone[source]

Local time

utcoffset(dt)[source]
dst(dt)[source]
tzname(dt)[source]

Table Of Contents

Previous topic

pywws.DataStore

Next topic

pywws.Localisation