### Navigation

- index
- modules |
- next |
- previous |
- pywws 14.05.dev1208 documentation »
- Python programs and modules »

# 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`

  UTC

  `utcoffset`(dt)
  `tzname`(dt)
  `dst`(dt)

class `pywws.TimeZone.``LocalTimezone`

  Local time

  `utcoffset`(dt)
  `dst`(dt)
  `tzname`(dt)

`pywws.TimeZone.``main`()

Comments or questions? Please subscribe to the pywws mailing list http://groups.google.com/group/pywws and let us know.

### Navigation

- index
- modules |
- next |
- previous |
- pywws 14.05.dev1208 documentation »
- Python programs and modules »