Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set hours to 12|24
Message
De
12/09/2011 10:03:04
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Documentation de produit
Divers
Thread ID:
01523209
Message ID:
01523245
Vues:
46
>>>You are confusing a value returned by datetime() function with what is displayed
>>
>>Sergey,
>>
>>kindly explain.
>
>DateTime is stored internally as Date + (seconds/86400.0) and is independent of any settings. SET commands come in effect when you try to display the value or convert it to a string.


OK, I got it, it seems that Set Hours and Set Date together can accomplish a correct 12-hour time notation.
This works for me:
lcOldDateSetting =SET('date')
SET date USA
SET HOURS TO 12
? TTOC(DATETIME(),2)
SET DATE &lcOldDateSetting
Thanks,
Koen
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform