Second: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
''This function is for BASIC compatibility. It is not available in pure JavaScript projects.''
Second(''time'')
Second(''time'')


Line 5: Line 7:
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.
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 ==
== Example (BASIC) ==


<pre>
<pre>
Line 28: Line 30:


[[Category:Date and Time]]
[[Category:Date and Time]]
[[Category:BASIC Functions]]

Latest revision as of 15:34, 25 March 2019

This function is for BASIC compatibility. It is not available in pure JavaScript projects.

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 (BASIC)

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)

Related Items

Date, Day, Hour, Minute, Month, Now, Time, Year