Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SECONDS() returns wrong value in FPW 2.6
Message
De
25/04/2000 18:55:44
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00363372
Message ID:
00363379
Vues:
14
Hi Doru,

I've tried this in FPW 2.6 and it works fine. Maybe your machine is slow and in the time that it takes to evaluate the SECONDS() the PC clock may have ticked over. Try saving SECONDS() to a variable and then build your expression from the variable.

Regards,
Gavin...


>I can't believe this!
>On my workstation SECONDS() returns a value that is different in FPW 2.6 than in FPD 2.6/VFP 6.0.
>The TIME() function returns the same values FPD, FPW, or VFP. Translating TIME() return into seconds shows that SECONDS() value in FPW is wrong:
>
>
>?time(),padl(allt(str(int(seco()/3600),2)),2,'0')+':'+ ;
>        padl(allt(str(int(mod(seco(),3600)/60),2)),2,'0')+':'+ ;
>        padl(allt(str(mod(mod(seco(),3600),60),2)),2,'0')
>displays:
>   15:08:32 15:08:33 VFP - difference  1
>   15:08:33 <b>15:07:21 FPW - difference 72</b>
>   15:08:35 15:08:35 FPD - difference  0
>
>
>I tested this on a number of WS, the above discrepancy happens only on some.
>
>Power off/ power on, does not fix the problem.
>Using GPLIB library to syncronize the WS with the server, does not fix the problem.
>
>The network is Novell 5, stations are from 486 to Pentium III with Win 98 or Win 3.1, all WS are using MS client.
>
>Can anybody test this, or may be this is a known issue?
>
>Thank you,
>Doru
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform