Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert numeric field information into time information
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01526846
Message ID:
01526848
Views:
70
This message has been marked as a message which has helped to the initial question of the thread.
Would this work for you?
? cTimeformat(9.5)
? cTimeformat(6.75)

FUNCTION cTimeFormat(n)
return RIGHT("00" + ALLTRIM(str(INT(n))),2) + ":" + RIGHT("00" + ALLTRIM(str(INT(60 * (n- INT(n))))),2)
>hi all,
>
>i have 9.5 and i want 09:30
>i have 6.75 and i want 06:45
>
>how to resolve my problem ?
>
>Thank in advance for help
>
>bernhart

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform