Second: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
(Created page with "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...")
 
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
SECOND(''time'')
''This function is for BASIC compatibility. It is not available in pure JavaScript projects.''  


'''Description'''
Second(''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.
== Description ==


'''Example'''
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) ==


<pre>
<pre>
REM SECOND Example
Rem Second Example
'SECOND returns secondofminuteofgiventime
'Second returns secondofminuteofgiventime
PRINT "The SECOND of " & NOW & " is " _
Print "The Second of " & Now & " is " _
   & SECOND(NOW)
   & Second(Now)
</pre>
</pre>


'''Output'''
== Output ==


<pre>
<pre>
The SECOND of 8/18/1998 10:52:44 PM is 44
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'''
== Related Items ==
 
[[date|Date]], [[day|Day]], [[hour|Hour]], [[minute|Minute]], [[month|Month]], [[now|Now]], [[time|Time]], [[year|Year]]
 
[[Category:Language Reference]]
 
[[Category:Date and Time]]


[[date|DATE]], [[day|DAY]], [[hour|HOUR]], [[minute|MINUTE]], [[month|MONTH]], [[now|NOW]], [[time|TIME]], [[year|YEAR]]
[[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