pywws.TimeZone

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

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

Classes

LocalTimezone Local time
UTC UTC
datetime datetime(year, month, day[, hour[, minute[, second[, microsecond[,tzinfo]]]]])
timedelta Difference between two datetime values.
tzinfo Abstract base class for time zone info objects.
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]
pywws.TimeZone.main()

Table Of Contents

Previous topic

pywws.DataStore

Next topic

pywws.Localisation