Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set hours to 12|24
Message
From
12/09/2011 10:03:04
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Product Documentation
Miscellaneous
Thread ID:
01523209
Message ID:
01523245
Views:
48
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform