hours Function

Function:

Returns the hours value for a given minutes number.

Syntax:

hours (mincount as word) as byte

Returns:

Hours in the 0-23 range.

See Also:

year, month, date, weekday, daycount, minutes, mincount


Part

Description

mincount

The number of minutes elapsed since midnight (00:00 is minute #0). Maximum mincount number is 1439 (23:59).


Details

If a value higher than 1439 is supplied, this call will return 255. This error value cannot be confused with valid output since normal hours value cannot exceed 23.


Examples

Tibbo BASIC
 
b = hours(620) ' result will be 10 (because this minute number is falls between 10:00 and 11:00)
 

hours Function

Details

Examples