home *** CD-ROM | disk | FTP | other *** search
/ PDA Software Library / pdasoftwarelib.iso / PSION / MISC / TIMECALC / TIMECALC.TXT < prev    next >
Encoding:
Text File  |  1995-05-18  |  2.8 KB  |  70 lines

  1. Time Calculator (Timecalc)
  2.  
  3. Status: Freeware.
  4.  
  5. Introduction
  6.   This is a small add-on module for the calculator application.  It enables 
  7. you to do simple mathematical operations (+, -, *, /) on clock times.
  8.  
  9. Installation
  10.   To install this module simply copy it into any \OPO directory and then go 
  11. into the calculator application and choose "Load OPL" from the "Special menu" 
  12. option.  It will then bring up a dialog box, choose Timecalc from under the 
  13. "File: Name" selector.  This module will now replace any other loaded modules 
  14. and you can proceed to use it.
  15.   To start the module working type: tcalc:("expr") where expr is your 
  16. expression.  Some examples are included below.
  17.  
  18. Syntax
  19.   The basic syntax for entering a time is HH.MM.SS ie two digits for each of 
  20. the Hour, Minute and Second times.  The hour number can be between 00 and 99, 
  21. the minute and second numbers can be between 00 and 59.  Note you MUST enter 
  22. two digits for each number, if you forget then the module will complain (see 
  23. Example error messages).  The hours, minutes and seconds should be seperated 
  24. by full-stops (.), the whole expression should be terminated with a colon (:).
  25. Any spaces that you care to add will be removed.  The module accepts any of 
  26. the four simple mathematical operators, though multiplying and dividing times 
  27. may give strange results.  The characters for these operations are the same 
  28. as the normal calculator ie +, -, * and /.
  29.   The sum is then returned as a six digit number in the calculator display.
  30. It is also returned as a dot-seperated time in the bottom right-hand corner 
  31. of the display.  This will disappear after a few seconds as it is only 
  32. intended as a guide for times with confusing numbers of digits.  Any errors 
  33. that may be reported will also be shown at the bottom right of the screen.
  34.  
  35. Example expressions:
  36. tcalc:("18.21.29:")
  37. returns the time 182129
  38.  
  39. tcalc:("18.21.20 + 13.10.40:")
  40. returns the time 313200 (an example of summing two times)
  41.  
  42. tcalc:("18.21.20 - 13.10.40:")
  43. returns the time 51040 (an example of subtracting two times)
  44. this is a good example of looking at the time in the bottom-right hand corner 
  45. as this is shown there as 5.10.40, ie 5 hours, 10 minutes and 40 seconds.
  46.  
  47. Example error messages:
  48. Missing Operand: You have missed out a whole time (ie HH.MM.SS)
  49. Missing Operator: You have missed out an operator (ie +, -, * or /)
  50. Missing, .: You have missed out a seperator (ie .)
  51. Missing seconds: You have missed out one or two digits of the seconds
  52. Missing minutes: You have missed out one or two digits of the minutes
  53. Missing hours: You have missed out one or two digits of the hours
  54.  
  55.  
  56. Contacting the Author:
  57. To contact me, try:
  58. Andrew Gray,
  59. 7 Cambron,
  60. Two Mile Ash,
  61. Milton Keynes,
  62. Bucks,
  63. MK8 8BZ
  64.  
  65. or
  66.  
  67. ajg4@ukc.ac.uk
  68.  
  69. Any comments, ideas for improvement or anything welcome :-)
  70.