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:
01526859
Views:
53
Likes (1)
>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
? Dec2Hour(9.5)
? Dec2Hour(6.75)

FUNCTION Dec2Hour(tn)
  RETURN TRANSFORM(INT(tn), "@L 99") + ":" + TRANSFORM(tn%1 * 60 , "@L 99")
ENDFUNC
Luis María Guayán
Tucumán, Argentina
________________________________
SysOp de www.PortalFox.com
Nada corre como un zorro
________________________________
Previous
Reply
Map
View

Click here to load this message in the networking platform