previous next top complete contents complete index framed top this page unframed
Figure 33–25. $disassembleTime
| PROCEDURE $disassembleTime (LONG INTEGER time; PRODUCES INTEGER hour; PRODUCES OPTIONAL INTEGER minute,second; OPTIONAL BITS ctrlBits); |
$disassembleTime returns the hour, minute, and second if given an absolute (local or GMT) time, or the number of hours, minutes, and seconds if given a time difference.
If an illegal input value is detected, -1 is returned for hour, minute, and second.
The only valid ctrlBits bit is errorOK. Unless it is specified, an error message is generated for erroneous input values.
The standard MAINSAIL date and time formats are described in Section 24.1.
MAINSAIL Language Manual, Section 33.26