Time Calculator (Timecalc) Status: Freeware. Introduction This is a small add-on module for the calculator application. It enables you to do simple mathematical operations (+, -, *, /) on clock times. Installation To install this module simply copy it into any \OPO directory and then go into the calculator application and choose "Load OPL" from the "Special menu" option. It will then bring up a dialog box, choose Timecalc from under the "File: Name" selector. This module will now replace any other loaded modules and you can proceed to use it. To start the module working type: tcalc:("expr") where expr is your expression. Some examples are included below. Syntax The basic syntax for entering a time is HH.MM.SS ie two digits for each of the Hour, Minute and Second times. The hour number can be between 00 and 99, the minute and second numbers can be between 00 and 59. Note you MUST enter two digits for each number, if you forget then the module will complain (see Example error messages). The hours, minutes and seconds should be seperated by full-stops (.), the whole expression should be terminated with a colon (:). Any spaces that you care to add will be removed. The module accepts any of the four simple mathematical operators, though multiplying and dividing times may give strange results. The characters for these operations are the same as the normal calculator ie +, -, * and /. The sum is then returned as a six digit number in the calculator display. It is also returned as a dot-seperated time in the bottom right-hand corner of the display. This will disappear after a few seconds as it is only intended as a guide for times with confusing numbers of digits. Any errors that may be reported will also be shown at the bottom right of the screen. Example expressions: tcalc:("18.21.29:") returns the time 182129 tcalc:("18.21.20 + 13.10.40:") returns the time 313200 (an example of summing two times) tcalc:("18.21.20 - 13.10.40:") returns the time 51040 (an example of subtracting two times) this is a good example of looking at the time in the bottom-right hand corner as this is shown there as 5.10.40, ie 5 hours, 10 minutes and 40 seconds. Example error messages: Missing Operand: You have missed out a whole time (ie HH.MM.SS) Missing Operator: You have missed out an operator (ie +, -, * or /) Missing, .: You have missed out a seperator (ie .) Missing seconds: You have missed out one or two digits of the seconds Missing minutes: You have missed out one or two digits of the minutes Missing hours: You have missed out one or two digits of the hours Contacting the Author: To contact me, try: Andrew Gray, 7 Cambron, Two Mile Ash, Milton Keynes, Bucks, MK8 8BZ or ajg4@ukc.ac.uk Any comments, ideas for improvement or anything welcome :-)