Subject | Re: [IBO] Date Arithmatic |
---|---|
Author | Lester Caine |
Post date | 2004-11-18T14:19:32Z |
Wayne Forrest wrote:
Just multiply by 1440 to get the number of minutes.
minutes count and convert when displaying
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services
> What does ( Date 1 - Date 2 ) produce, I see a result as suchTime is fraction of a day
> 0.590934534 etc....
> Could someone please explain?
Just multiply by 1440 to get the number of minutes.
> What I am trying to achieve is to get the hours and minutes between twoIf you want separate numbers you will need two fields, I just store the
> date entries.
minutes count and convert when displaying
> Both date entries are in the format where date and time is recorded.No problem - just more than 1440 minutes.
> The calculation should take into account the date part as well meaning
> that the hours calculated can exceed 24.
> The best solution would be if the Calculation would be done in aCAST ( ( Date 1 - Date 2 ) * 1440 AS INTEGER )
> computed field.
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services