TimeSerial

From NSB App Studio
Revision as of 20:33, 8 July 2012 by Brendon (talk | contribs) (Created page with "TIMESERIAL(''hour'', ''minute'', ''second'') '''Description''' TIMESERIAL returns a time constructed from the given hour, minute, and second. The required parameter, ''hour'...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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