Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SECONDS() and SYS(2) does not agree
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00690506
Message ID:
00691091
Vues:
12
Hi,

Maybe it's my version of VFP7 (version 07.00.0000.9262) but try this.
In the afternoon, do a SECONDS() and SYS(2). Change your system time to any time past 12MN (I just change the AM to PM) and run the SECONDS() and SYS(2) again. In mine, the results of the integer portion is tens of thousands off.

Arriyel

>>Hi,
>>
>>I'm using VFP7. We were testing some code and we learned that the SECONDS() function seems to be NOT resetting when the the time passes midnight. The values returned by SECONDS() and SYS(2) do not match once the time passes midnight.
>>
>>We checked the hackers guide (both for VFP6 and 7) and it states that this has been fixed since VFP3.
>>
>>Is anyone else getting the same results we are?
>>
>>Thanks,
>
>Arriyel,
>
>The only difference that I see is that SYS(2) returns character (of course) and rounds up any decimal portion greater than .001.
Speak using soft and sweet words in case you have to eat them later.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform