All integer variables:does anyone know a trick to do easily dms calculations ?
eg. if time elapsed in seconds is 5000
then
dms_d(5000) = 1
dms_m(5000) = 23
dms_s(5000) = 20
so 5000 sec = 1 hr 23 min 20 sec (1:23:20)
the same for the inverse operation
elapsed_s=(dms_h*3600)+(dms_m*60)+dms_sdoes anyone know a trick to do easily dms calculations ?
eg. if time elapsed in seconds is 5000
then
dms_d(5000) = 1
dms_m(5000) = 23
dms_s(5000) = 20
so 5000 sec = 1 hr 23 min 20 sec (1:23:20)
the same for the inverse operation
does anyone know a trick to do easily dms calculations ?
eg. if time elapsed in seconds is 5000
then
dms_d(5000) = 1
dms_m(5000) = 23
dms_s(5000) = 20
so 5000 sec = 1 hr 23 min 20 sec (1:23:20)
the same for the inverse operation
well I hoped for something still simpler (some operation that as a side effect produces the dms values even as a single string dd:mm:ss),
I will probably make a dms macro as a kind of procedure with standard named global variables
thanks all
You are right. You can create a kind of function with 'dms...' variables as global ones instead of local ones and call (run) this macro with 'Wait to complete before running...' option checked every time you need to convert an elapsed time.well I hoped for something still simpler (some operation that as a side effect produces the dms values even as a single string dd:mm:ss),
I will probably make a dms macro as a kind of procedure with standard named global variables
thanks all