|
On Wed, 08 Jul 2009 08:53:39 -0400, Scott Coffey <none@noemail.com.invalid
I'm working on a timecard application. The employee can clock in/out
up to four times a day. I need to express the total daily hours as a
decimal number such as 9.70 hours...
Started by Scott Coffey on
, 5 posts
by 4 people.
Answer Snippets (Read the full thread at omgili):
J2Sec( nJulian )
nHours := nSeconds / 3600
set( _SET_DECIMALS, nDecimals )
return nHours J2HoursDec( nJulian )
local nSeconds, nHours
local nDecimals := set( _SET_DECIMALS, 2 )
nSeconds.
|