Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019 
<== Date ==> <== Thread ==>

Subject: Setting TZ for RTEMS so that local time is correct
From: "Allison, Stephanie" <saa@SLAC.Stanford.EDU>
To: "'Kate Feng'" <feng1@bnl.gov>
Cc: tech-talk@aps.anl.gov
Date: Tue, 24 Jun 2003 11:58:13 -0700
Hi Kate,

At the meeting, you mentioned that you modify rtems_bsdnet_timeoffset in EPICS base osdTime.cpp in order to get the correct local time for your time zone.  Till Straumann added these commands to our shared Cexp startup file so that our local time (pacific (left coast) time in our case) is correct:

setenv("TZ","PST8PDT",1)
tzset()

Note that for RTEMS (as for the other posix systems), EPICS_TIMEZONE is not used and TZ must be set instead.

Till found a little bug in tzset which he fixed and documented here:
http://www.oarcorp.com/rtems/maillistArchives/rtems-users/2003/may/msg00168.html
It will be fixed in the next newlib release.

Hope this helps,

Stephanie

Replies:
Re: Setting TZ for RTEMS so that local time is correct Kate Feng

Navigate by Date:
Prev: Re: Maximum (Minimum) Vaue of a Set of Readback PVs kuner
Next: Re: Maximum (Minimum) Vaue of a Set of Readback PVs kuner
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: Re: Maximum (Minimum) Vaue of a Set of Readback PVs kuner
Next: Re: Setting TZ for RTEMS so that local time is correct Kate Feng
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·