Decimal value to time value (1 Viewer)

PG2015

Registered User.
Local time
Today, 22:46
Joined
Feb 16, 2015
Messages
21
As easy as it sounds I don't seem to be able to get this right.

Looking for a query that will take a value say 4.5 and convert to datevalue in hours so will end up as 04:30:00

Any help appreciated.

Thanks
:banghead:
 

stopher

AWF VIP
Local time
Today, 22:46
Joined
Feb 1, 2006
Messages
2,395
myTime: TimeSerial(Int([myValue]),([myValue]-Int([myValue]))*60,0)
 

PG2015

Registered User.
Local time
Today, 22:46
Joined
Feb 16, 2015
Messages
21
Look at that - spot on!

Thanks very much
 

apr pillai

AWF VIP
Local time
Tomorrow, 03:16
Joined
Jan 20, 2005
Messages
735
Code:
? format(4.5/24,"hh:nn:ss")
Result: 04:30:00
 

PG2015

Registered User.
Local time
Today, 22:46
Joined
Feb 16, 2015
Messages
21
Thanks very much - can use that too.

Thanks again
 

Users who are viewing this thread

Top Bottom