Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set hours to 12|24
Message
De
12/09/2011 09:19:11
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Documentation de produit
Divers
Thread ID:
01523209
Message ID:
01523223
Vues:
55
>>>>>Hi,
>>>>>
>>>>>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?
>>>>>
>>>>>Regards,
>>>>>
>>>>>Koen
>>>>
>>>>
>>>>Set Hours is scoped to the current datasession - works well over here
>>>
>>>Does not work from the command window:
>>>
>>>SET HOURS TO 12
>>>?DATETIME()
>>>SET HOURS TO 24
>>>?DATETIME()
>>>dt = DATETIME() + 3600 *10
>>>?dt
>>>SET HOURS TO 12
>>>?dt
>>>
>>
>>
>>Somehow it works over here
>>
>>
>>dt = datetime+ 3600*10
>>SET HOURS TO 12
>>?dt && 13/09/2011 12:59:30 AM
>>
>>set hours to 24
>>?dt && 13/09/2011 00:59:30
>>
>
>I got - see attached. Are you trying in the form or from the command window?

Naomi,
confirmed, me too I get always 24 hours notation. See jpg attached. Will figure out a function for 12hours. sic()

regards,

Koen
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform