Minute: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Add javascript snippet |
||
Line 5: | Line 5: | ||
Minute returns a whole number ranging from 0 to 59 that represents the minute of the hour, of a given time. The required parameter, ''time'', can be any numeric or string expression, or any expression that represents a time. | Minute returns a whole number ranging from 0 to 59 that represents the minute of the hour, 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 14: | Line 14: | ||
Print "The Minute of " & When & " is " _ | Print "The Minute of " & When & " is " _ | ||
& Minute(When) | & Minute(When) | ||
</pre> | |||
== Example (JavaScript) == | |||
<pre> | |||
// Minute Example | |||
/* Minute returns minute of hour from a time */ | |||
var When; | |||
When = new Date(); | |||
NSB.Print("The Minute of " + When + " is " + When.getMinutes()); | |||
</pre> | </pre> | ||
Revision as of 01:49, 28 May 2013
Minute(time)
Description
Minute returns a whole number ranging from 0 to 59 that represents the minute of the hour, 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 Minute Example 'Minute returns minute of hour from a time Dim When When = Now Print "The Minute of " & When & " is " _ & Minute(When)
Example (JavaScript)
// Minute Example /* Minute returns minute of hour from a time */ var When; When = new Date(); NSB.Print("The Minute of " + When + " is " + When.getMinutes());
Output
The Minute of 8/18/1998 10:52:44 PM is 52 (sample date output is system dependant)