Adding minutes to a time

Chris Sharman Chris.Sharman@ccagroup.co.uk
Thu, 3 Jun 1999 17:52:59 +0100


>Does anyone know of a Powerhouse 'function' to add a number of minutes to a
>time value specified as HH:MM. I'm looking for something similar to the
>DATE function where you can add a number of days to a date.

No, it's not easy.
Some date formats include the time (vmsdate, stardate), and you can use a real
number of days with the date function (ie 0.01 = 0.24 hours).
Failing that, you can keep the number in minutes (or seconds or hours) for
arithmetic, and just convert it (using a define) for display.
If you've got hhmm, you'll have to convert it back to a useful integer first.

Chris.
______________________________________________________________________
Chris Sharman			Chris.Sharman@CCAgroup.co.uk
CCA Stationery Ltd, Eastway, Fulwood, Preston, Lancashire, PR2 9WS.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.