TimeSerial: Difference between revisions
Jump to navigation
Jump to search
Created page with "TIMESERIAL(''hour'', ''minute'', ''second'') '''Description''' TIMESERIAL returns a time constructed from the given hour, minute, and second. The required parameter, ''hour'..." |
No edit summary |
||
Line 1: | Line 1: | ||
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 == | |||
<pre> | <pre> | ||
Rem TimeSerial Example | |||
' | 'TimeSerial builds a time from its parts | ||
Dim FiveThirty, Noon | |||
FiveThirty = | FiveThirty = TimeSerial(11 - 6, 30, 0) | ||
Noon = | Noon = TimeSerial(12, 0, 0) | ||
Print "Half past five:", FiveThirty | |||
Print "Noon:", Noon | |||
</pre> | </pre> | ||
== Output == | |||
<pre> | <pre> | ||
Line 25: | Line 25: | ||
</pre> | </pre> | ||
== Related Items == | |||
[[dateserial|DATESERIAL]] | [[dateserial|DATESERIAL]] | ||
[[Category:Language Reference]] |
Revision as of 03:56, 17 August 2012
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)