Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set hours to 12|24
Message
 
 
À
12/09/2011 09:05:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Documentation de produit
Divers
Thread ID:
01523209
Message ID:
01523221
Vues:
59
>>Return value of dateime() is not affected by SET HOURS or other date/time related SET commands. It would a bug if it was
>>
>>>
>>>When I Set Hours to 12, datetime() is returning a time as if I had set hours to 24. How can I be sure to get a 12 hours notation?
>
>Sergey,
>
>I agree with Naomi, the Helpfile says explicit the value returned by DATETIME( ) is determined by the current SET HOURS setting. More important how can I get a 12 hour notation or am I forced to make a function?
>
>Regards,
>
>Koen

In my tests I always got 12 hours (AM/PM) output regardless on the settings. Unless it's ? that affected it and I'm going to try with MESSAGEBOX now.

UPDATE. I got the same result with the MESSAGEBOX also.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform