https://www.betaarchive.com/wiki/index.php?title=Microsoft_KB_Archive/102706&feed=atom&action=history
Microsoft KB Archive/102706 - Revision history
2024-03-29T10:30:53Z
Revision history for this page on the wiki
MediaWiki 1.39.3
https://www.betaarchive.com/wiki/index.php?title=Microsoft_KB_Archive/102706&diff=47274&oldid=prev
3155ffGd: importing KB archive
2020-07-18T15:02:51Z
<p>importing KB archive</p>
<p><b>New page</b></p><div><div id="nsbanner"><br />
<br />
<div id="bannerrow1"><br />
<br />
{|<br />
| Knowledge Base<br />
|<br />
|}<br />
<br />
<br />
</div><br />
<div id="TitleRow"><br />
<br />
= <span id="KB102706"></span>PRB: SECONDS() Function Is Not Reset at 12:00 A.M. (Midnight) =<br />
<br />
<br />
</div><br />
<br />
</div><br />
<div id="nstext" valign="BOTTOM"><br />
<br />
Article ID: 102706<br />
<br />
Article Last Modified on 9/30/2003<br />
<br />
<br />
-----<br />
<br />
APPLIES TO<br /><br />
<br /><br />
<br />
* Microsoft Visual FoxPro 3.0 Standard Edition<br />
<br />
<br />
-----<br />
<br />
<div class="notice_section"><br />
<br />
This article was previously published under Q102706<br />
<br />
</div><br />
<div class="symptoms_section"><br />
<br />
== SYMPTOMS ==<br />
<br />
If the system clock goes past 12:00 A.M. while FoxPro for Windows is running, the value returned by the SECONDS() function may not be reset properly.<br />
<br />
</div><br />
<div class="status_section"><br />
<br />
== STATUS ==<br />
<br />
Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.<br />
<br />
</div><br />
<div class="moreinformation_section"><br />
<br />
== MORE INFORMATION ==<br />
<br />
The value returned by the SECONDS() function should be the number of seconds that have elapsed since midnight. The SYS(2) function also returns the number of seconds that have elapsed since midnight, but it rounds the value to the nearest second.<br />
=== Steps to Reproduce Problem ===<br />
<br />
<ol><br />
<li>Start FoxPro for Windows.</li><br />
<li>In the Command window, issue the following command:<br />
<div class="indent"><br />
<br />
<p>? SECONDS()</p><br />
<br />
</div></li><br />
<li>In the Command window, issue the following command:<br />
<div class="indent"><br />
<br />
<p>? SYS(2)</p><br />
<br />
</div></li><br />
<li>Use the Date/Time icon in the Windows Control Panel to change the system clock to 11:59:00 P.M.</li><br />
<li>Switch back to FoxPro and wait until the time reaches 12:00 A.M.</li><br />
<li>Repeat steps 2 and 3.</li></ol><br />
<br />
When the system clock reaches midnight, the value returned by the SYS(2) function is reset to 0, but value returned by the SECONDS() function is not.<br /><br />
<br /><br />
NOTE: Both SYS(2) and SECONDS() are reset to 0 at midnight in FoxPro 2.5a for MS-DOS.<br />
<br />
</div><br />
<br /><br />
<br />
Additional query words: VFoxWin FoxWin 2.50 2.50a 2.50b<br />
<br />
Keywords: KB102706<br />
<br />
<div class="footer"><br />
<br />
<br /><br />
<br />
<br />
-----<br />
<br />
[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]<br />
<br />
<span>© Microsoft Corporation. All rights reserved.</span><br />
<br />
<br />
</div><br />
<br />
</div></div>
3155ffGd