Second: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
Second(''time'') | |||
== Description == | |||
Second returns a whole number ranging from 0 to 59 that represents the second of the minute, of a given time. The required parameter, ''time'', can be any numeric or string expression, or any expression that represents a time. | |||
== Example == | |||
<pre> | <pre> | ||
Rem Second Example | |||
' | 'Second returns secondofminuteofgiventime | ||
Print "The Second of " & Now & " is " _ | |||
& | & Second(Now) | ||
</pre> | </pre> | ||
== Output == | |||
<pre> | <pre> | ||
The | The Second of 8/18/1998 10:52:44 PM is 44 | ||
(sample date output is system dependant) | (sample date output is system dependant) | ||
</pre> | </pre> | ||
== Related Items == | |||
[[date|DATE]], [[day|DAY]], [[hour|HOUR]], [[minute|MINUTE]], [[month|MONTH]], [[now|NOW]], [[time|TIME]], [[year|YEAR]] | [[date|DATE]], [[day|DAY]], [[hour|HOUR]], [[minute|MINUTE]], [[month|MONTH]], [[now|NOW]], [[time|TIME]], [[year|YEAR]] | ||
[[Category:Language Reference]] |
Revision as of 03:04, 17 August 2012
Second(time)
Description
Second returns a whole number ranging from 0 to 59 that represents the second of the minute, of a given time. The required parameter, time, can be any numeric or string expression, or any expression that represents a time.
Example
Rem Second Example 'Second returns secondofminuteofgiventime Print "The Second of " & Now & " is " _ & Second(Now)
Output
The Second of 8/18/1998 10:52:44 PM is 44 (sample date output is system dependant)