CET timezone without DST

Jan-Benedict Glaw jbglaw at lug-owl.de
Mon Apr 23 17:37:14 UTC 2007


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.

MfG, JBG

-- 
      Jan-Benedict Glaw      jbglaw at lug-owl.de              +49-172-7608481
Signature of: 23:53 <@jbglaw> So, ich kletter' jetzt mal ins Bett.
the second  : 23:57 <@jever2> .oO( kletter ..., hat er noch Gitter vorm Bett, wie früher meine Kinder?)
              00:00 <@jbglaw> jever2: *patsch*
              00:01 <@jever2> *aua*, wofür, Gedanken sind frei!
              00:02 <@jbglaw> Nee, freie Gedanken, die sind seit 1984 doch aus!
              00:03 <@jever2> 1984? ich bin erst seit 1985 verheiratet!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20070423/998fd749/attachment-0002.pgp 


More information about the uClibc mailing list