This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
On Thu, 30 Dec 1999, Unidata Support wrote: > >To: address@hidden > >cc: address@hidden, > >cc: address@hidden, > >cc: address@hidden > >From: "D. J. Raymond" <address@hidden> > >Subject: Re: 19991230: Y2K Bug Fix for pqact program of the LDM > >Organization: . > >Keywords: 199912301810.LAA28106 > > Hello, > > I am still using ldm-5.0.6 and managed to find something that looked > like the line you quoted in the y2k fix -- however, this line wasn't > unique. I am attaching my patch with some context and perhaps you > can tell me if I did the right thing. > > Dave Raymond Dave, It looks ok to me. Before installing the new pqact in the ~ldm/bin directory I would do: % ldmadmin stop % cd ~ldm/bin % cp pqact pqact.sav copy in new pqact % ls -l pqact (make sure executable permission are there) % ldmadmin start check the logs/ldmd.log file that pqact started up ok. Robb... > > ------ > > > if (strcmp(select,"yyyy") == 0) { > year = time_s->tm_year + (time_s->tm_year > 87 ? 1900 : 2000); > (void) sprintf(ostring,"%d",year); > ostring += 4; > } > else if (strcmp(select,"yy") == 0) { > year = time_s->tm_year; > /* y2k fix from unidata > (void) sprintf(ostring,"%d",year); > */ > (void) sprintf(ostring,"%02d", year % 100); > ostring += 2; > } > =============================================================================== Robb Kambic Unidata Program Center Software Engineer III Univ. Corp for Atmospheric Research address@hidden WWW: http://www.unidata.ucar.edu/ ===============================================================================