Subject: | |
From: | |
Reply To: | |
Date: | Sat, 19 Feb 2005 17:08:18 -0600 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Quoting Greg Stigers <[log in to unmask]>:
> I'm trying to figure out how to simply and with a single calculation figure
> out the time, half an hour from "now", in MPE. I do not need to worry about
> crossing midnight, although I do have to test for a "stop time". The best
> idea I have had so far is to add hours x 60 to minutes, add 30, and divide
> by 60 to get hours and mod 60 to get back minutes, although I'm less sure
> about doing that as a single command line.
>
> Greg Stigers
MGR.TEST:SHOWVAR HPMINUTE
HPMINUTE = 5
MGR.TEST:SETVAR MINUTE HPMINUTE+30
MGR.TEST:SHOWVAR MINUTE
MINUTE = 35
If HPMINUTE > 30 then you'd have to add some checking and math, something like
and IF ... THEN ... ELSE check to subtract 30 from the minutes and add 1 to the
hour.
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|