<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<META content="MSHTML 6.00.2900.2523" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face="Courier New" color=#0000ff size=2><SPAN 
class=276105613-03022005>Yuming is not on the time zone mailing list; direct 
replies appropriately.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Courier New" color=#0000ff size=2><SPAN 
class=276105613-03022005></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face="Courier New" color=#0000ff size=2><SPAN 
class=276105613-03022005>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
--ado</SPAN></FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Fei Yuming-CYF001 
[mailto:Yuming.Fei@motorola.com] <BR><B>Sent:</B> Tuesday, February 01, 2005 
4:14 PM<BR><B>To:</B> 'tz@elsie.nci.nih.gov'<BR><B>Subject:</B> glibc, Linux: 
about the time zone transition values in the localt ime 
file<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2><SPAN class=210183820-01022005>Dear 
Sir:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=210183820-01022005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=210183820-01022005>On Linux systems, it 
seems that the transitions stored in the localtime file are not the current time 
to start the transition, but the new local current time right after the 
transition.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=210183820-01022005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=210183820-01022005>For example, I have 
the glibc-2.2.5 library on my Linux 2.4.20 system, my timezone is set to 
US/Central and my current time is&nbsp;in CST. The /etc/localtime (or 
/usr/share/zoneinfo/US/Central) shows that in 2005, the time&nbsp;to transfer 
into DST is 1112515200 seconds, i.e. Sun Apr 3 <STRONG>03:00:00</STRONG> 2005. 
(This can be got, e.g., by breaking into the glibc-2.2.5/time/tzfile.c's 
__tzfile_read() function, and printing out the transitions values, i.e. 
transitions[169] == 1112515200).</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=210183820-01022005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=210183820-01022005>However, as we know, 
the transition to DST&nbsp;is&nbsp;Apr 3 <STRONG>02:00:00</STRONG> --&gt; Apr 3 
03:00:00.&nbsp;&nbsp;The time after the transition (i.e. 03:00:00) instead of 
the current time to start the transition (ie.. 02:00:00) has been stored in the 
localtime file. Could you please let me know what the reason it is to do so 
(i.e. why not storing 02:00:00)?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=210183820-01022005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=210183820-01022005>I will highly 
appreciate your help!</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=210183820-01022005>Yuming 
</SPAN></FONT></DIV></BODY></HTML>