HP3000-L Archives

February 2005, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Matthew Perdue <[log in to unmask]>
Reply To:
Matthew Perdue <[log in to unmask]>
Date:
Sat, 19 Feb 2005 17:08:18 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (24 lines)
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 *

ATOM RSS1 RSS2