<div class="gmail_quote">On Wed, Dec 10, 2008 at 10:43 AM, Jennifer Wang (jennifwa) <span dir="ltr">&lt;<a href="mailto:jennifwa@cisco.com">jennifwa@cisco.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">




<div>
<div><font face="Arial" size="2">
<div><font face="Arial" size="2"><span>Hello,</span></font></div>
<div><font face="Arial" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" size="2">We ran into a problem when setting time to the 
&quot;missing hour&quot; during transition from standard time to DST time.&nbsp; For 
example, setting time to Mar 8, 2009 at 2:10am using America/Los_Angeles time 
zone results in error.&nbsp; </font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">Should&nbsp;<span>mktime()</span> skip forward in this case and set the 
time to Mar 8, 2009 3:10am?</font></div></font></div></div></blockquote><div><br></div><div>To me, it seems to make sense to return an error. &nbsp;The time 2:10am Mar 8, 2009 in America/Los_Angeles really is an ambiguous time. &nbsp;You can&#39;t determine the intension of the caller. &nbsp;She could either be counting forward one hour from 1:10am, or she could be counting back one hour from 3:10am, which result in different answers. &nbsp;Likewise, calling mktime() with 2:10am, Nov 2, 2008 in America/Los_Angeles and a negative value of tm_isdst is similarly ambiguous.</div>
<div><br></div><div>I think both of these cases should return an error.</div><div><br></div><div>-Scott</div></div><br>-- <br>Scott Atwood<br><br>Cycle tracks will abound in Utopia. &nbsp;~H.G. Wells<br><br><br>