TIMESERIAL                                                          Function

TIMESERIAL(hour, minute, second)

Description

TIMESERIAL returns a time constructed from the given hour, minute, and second. The required parameter, hour, is any numeric expression ranging from 0 to 23. The required parameters, minute and second, can be any numeric expression.

Example

REM TIMESERIAL Example

'TIMESERIAL builds a time from its parts

DIM FiveThirty, Noon

FiveThirty = TIMESERIAL(11 - 6, 30, 0)

Noon = TIMESERIAL(12, 0, 0)

PRINT "Half past five:", FiveThirty

PRINT "Noon:", Noon

Output

Half past five:      05:30:00 AM

Noon:  12:00:00 PM

(sample time output is system dependant)

Related Items

DATESERIAL