Time: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
No edit summary
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
TIME
''This function is for BASIC compatibility. It is not available in pure JavaScript projects.''


'''Description'''
Time


TIME returns the current system time.
== Description ==


'''Example'''
Time returns the current system time.
 
== Example (Basic) ==


<pre>
<pre>
REM TIME Example
Rem Time Example
'TIME returns current system time
'Time returns current system time
DIM RightNow
Dim RightNow
RightNow = TIME
RightNow = Time
PRINT "The time now is " & RightNow
Print "The time now is " & RightNow
</pre>
</pre>


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


<pre>
<pre>
Line 22: Line 24:
</pre>
</pre>


'''Related Items'''
== Related Items ==
 
[[date|Date]], [[day|Day]], [[dateadd|DateAdd]], [[hour|Hour]], [[minute|Minute]], [[month|Month]], [[now|Now]], [[second|Second]], [[weekday|WeekDay]], [[year|Year]] (and many more)
 
[[Category:Language Reference]]
 
[[Category:Date and Time]]


[[date|DATE]], [[day|DAY]], [[dateadd|DATEADD]], [[hour|HOUR]], [[minute|MINUTE]], [[month|MONTH]], [[now|NOW]], [[second|SECOND]], [[time|TIME]], [[weekday|WEEKDAY]], [[year|YEAR]] (and many more)
[[Category:BASIC Functions]]

Latest revision as of 15:37, 25 March 2019

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

Time

Description

Time returns the current system time.

Example (Basic)

Rem Time Example
'Time returns current system time
Dim RightNow
RightNow = Time
Print "The time now is " & RightNow

Output

The time now is 10:52:44 PM
(sample time output is system dependant)

Related Items

Date, Day, DateAdd, Hour, Minute, Month, Now, Second, WeekDay, Year (and many more)