mincount Function
Function: |
Returns the minutes number for a given hours and minutes. |
Syntax: |
mincount(hours as byte, minutes as byte) as word |
Returns: |
Minute number elapsed since midnight (00:00). This value is in the 0-1439 range. |
See Also: |
Part |
Description |
hours |
An hour value, from 0 to 23. |
minutes |
A minute value, from 0 to 59. |
Details
If any input parameter is illegal (hours exceeds 23, minutes exceeds 59, etc.), this syscall will return 65535. This error value cannot be confused with an actual valid minute number since the maximum minute number cannot exceed 1439.
Examples
Tibbo BASIC
w = mincount(14, 00) ' result will be 840