|
|
|
Re: Time Operations [message #281629 is a reply to message #281191] |
Sun, 18 November 2007 21:37 |
|
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
Define 'from_time' and 'to_time' as date-time fields but use a format of 'hh24:mi' so that only the hours and minutes are displayed. You can either store the 'duration' or calculate it on the fly. Is 'duration' to be hours or minutes?
You get the difference by subtracting the 'from_time' from the 'to_time', which will give you the answer in days, and then multiply it out to hours or minutes.
To get the 'total duration' then use a 'calculated field'. Search this forum for 'calculation mode'.
David
|
|
|