Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Make a time value from a given float value

By Paul-249492,

Clients asked me to show a more detailed and longer text which doesn't have to be edited. So I came up with the following solution/function.
This function returns a varchar time value with a description containing how many days, hours and minutes. For example 100.25 returns :
'100:15( 4 Days, 4 Hours, 15 Minutes )'.
I hope somebody can use it or it was helpfull to make things easier.
Thanks in advance.
Paul

Total article views: 107 | Views in the last 30 days: 1
 
 
Contribute