osd-contiki/apps/time
Ralf Schlatterbeck c6165a3bcf Refactor GENERIC_RESOURCE macro
Now callback functions get the URI of the request, this allows to use a
single resource for multiple different URIs.
The is_json flag is now gone for the to-string function, instead the
macro has an is_str flag. If set this automagically produces quotes
around the string for json output.
Now from-string functions can return an error-code, 0 for success, -1
for error.
2016-02-26 17:13:48 +01:00
..
Makefile.time Implement localtime 2016-02-18 09:55:07 +01:00
README Implement localtime 2016-02-18 09:55:07 +01:00
resource_gmtime.c Refactor GENERIC_RESOURCE macro 2016-02-26 17:13:48 +01:00
resource_timestamp.c Refactor GENERIC_RESOURCE macro 2016-02-26 17:13:48 +01:00
resource_timezone.c Refactor GENERIC_RESOURCE macro 2016-02-26 17:13:48 +01:00
time.c Implement localtime 2016-02-18 09:55:07 +01:00
time.h Implement localtime 2016-02-18 09:55:07 +01:00
time_resource.h Implement localtime 2016-02-18 09:55:07 +01:00
tzparse.h Implement localtime 2016-02-18 09:55:07 +01:00

Timezones
=========

The new version supports time zones and daylight saving time (DST).
Currently we support only a single timezone. We use the UNIX timezone
format which is usually specified in an environment variable TZ.

Note that for timezone information you can have different
representation, either relative to Universal Time Coordinated (UTC) or
to International Atomic Time (TAI), the latter contains leap seconds.
Since most systems today use UTC *and* the clock of a microcontroller
is typically not accurate enough to care about leap seconds, we're using
timezone files relative to UTC.

Wikipedia has a very good treatment of the public timezone database in
https://en.wikipedia.org/wiki/Tz_database

The format of timezone strings is described in the Linux manual page
tzset(3). The timezone specification for Europe/Vienna is
CET-1CEST,M3.5.0,M10.5.0/3