"sae2003us" <sae2003us@yahoo.com> writes:
> I'm making a program which involves the use of time.
> is there a function in pop11 that knows that there are
> 60 minutes in an hour. For example, when adding
> 55 minutes to 1230, it should be 1325, not 1285 !??
You may find something in REF times. I suspect the closest
thing is sys_convert_date, which will probably not do what
you want.
However, writing the program should be a ten minute exercise
once you have carefully analysed all cases to decide what
exatly you want.
E.g. What if you add 55 to 2330? Do you want to add more than
60 minutes sometimes, e.g. 1230+355 etc.
Do you really want the procedure to accept and return numbers
or should it use 4-byte strings, or 4 integer lists or vectors?
Aaron
====
Aaron Sloman, ( http://www.cs.bham.ac.uk/~axs/ )
School of Computer Science, The University of Birmingham, B15 2TT, UK
EMAIL A.Sloman AT cs.bham.ac.uk (ReadATas@please !)
PAPERS: http://www.cs.bham.ac.uk/research/cogaff/ (And free book on Philosophy of AI)
FREE TOOLS: http://www.cs.bham.ac.uk/research/poplog/freepoplog.html
|