CET timezone without DST

Jeff Warren tiny.laser at comcast.net
Tue Apr 24 15:53:01 UTC 2007


On Mon, 2007-04-23 at 10:37, Jan-Benedict Glaw wrote:
> On Mon, 2007-04-23 18:01:34 +0100, robert laing <r.laing at yahoo.co.uk> wrote:
> > i'm staging a uclibc-gentoo on an embedded device.
> > i need to use a CET timezone without daylight saving.
> > 
> > what is the correct string to put in /etc/TZ?
> > 
> > reading this, i've seen only TZ whit dst
> > http://wiki.openwrt.org/OpenWrtDocs/Configuration#head-a7708420e79025405daa939605108397c2bd7343
> 
> CET is only defined during the winter months. It's CEST during the
> summer months, defined by local (or european?) law.
> 
> With GNU libc, you can, however, use the more complex ways to define
> TZ. In practice, you can do with it a lot more than only assigning
> predefined timezone labels.
> 
> For example:
> 
> $ TZ='CET-1' date
> Mon Apr 23 18:34:14 CET 2007
> 
> redefines CET to use an offset of one hour during all the year.
> 
> $ TZ='CET-1CEST,M3.5.0/2:00,M10.5.0/3:00' date
> Mon Apr 23 19:35:46 CEST 2007
> 
> would even produce a somewhat correct date representation, though you
> seem to not want that :)
> 
> But keep in mind that I don't know if uClibc's TZ parsing can
> interpret that.  It's simply untested.

I have used the uClibc implementation in a variety of string
configurations (including the ones above) and it seems to work as
advertised.

I used this as a reference:
http://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html


> 
> MfG, JBG




More information about the uClibc mailing list