EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  <19992000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  <19992000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: tsTextToStamp y2k glitch
From: "Christopher A. Larrieu" <[email protected]>
To: [email protected]
Date: Tue, 26 Oct 1999 17:34:31 -0400
Hi all,

  I've discovered a minor problem in tsTextToStamp() which
prevents the year "00" from being parsed properly, while
01..89 are problem-free.  The culprit is a test for 
(year <= 0), which should be (year < 0).  To wit, the
following modification should be made to tsSubr.c version 
1.35.2.1 at lines 1318 and 1368.

line 1318:
  
    if (count <= 1 || t.year <= 0)

  becomes

    if (count <= 1 || t.year < 0 || 
        (count > 3 && t.year < TS_EPOCH_YEAR))

 
  I vaguely recall someone else mentioning something similar
some time ago, so sorry if this is already known.  As far as
I can tell, none of EPICS base uses this routine, though I 
haven't checked the extensions.

Chris
-- 
Christopher A. Larrieu
Jefferson Laboratory
(757) 269-5097


Replies:
Re: tsTextToStamp y2k glitch Marty Kraimer

Navigate by Date:
Prev: Re: bumpless reboot Tim Mooney
Next: Re: tsTextToStamp y2k glitch Marty Kraimer
Index: 1994  1995  1996  1997  1998  <19992000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: CapFast e-mail on PD program Dr. Chong Lee
Next: Re: tsTextToStamp y2k glitch Marty Kraimer
Index: 1994  1995  1996  1997  1998  <19992000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
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 ·