Difference between revisions of "CurrentTime"

From MultiCharts
Jump to navigation Jump to search
m (Reverted edits by 176.8.90.7 (talk) to last revision by 194.84.116.138)
 
Line 1: Line 1:
Returns a numerical value, indicating the computer's current time. The time is indicated in the 24-hour HHmm format, where 1300 = 1:00 PM.  
+
Returns a numerical value, indicating the computer's current time. The time is indicated in the 24-hour ''HHmm'' format, where 1300 = 1:00 PM.  
 
   
 
   
==== Usage ====
+
== Usage ==
 
<syntaxhighlight>CurrentTime</syntaxhighlight>
 
<syntaxhighlight>CurrentTime</syntaxhighlight>
  
==== Example ====
+
== Notes ==
<syntaxhighlight>CurrentTime  will return a value of 1015 for 10:15 AM
+
* Use [[CurrentTime_s]] to get the computer's current time with seconds precision.
 
+
* Use [[Time]] and [[Time_s]] to get the time of the bar with respectively minutes and seconds precision.
CurrentTime  will return a value of 1545 for 3:45 PM</syntaxhighlight>
 
 
 
 
  
 +
== Example ==
 +
<syntaxhighlight>CurrentTime</syntaxhighlight>
 +
* Will return a value of 1015 for 10:15 AM,
 +
* Will return a value of 1545 for 3:45 PM.
  
 
[[Category:Date and Time Routines]]
 
[[Category:Date and Time Routines]]

Latest revision as of 12:23, 19 February 2012

Returns a numerical value, indicating the computer's current time. The time is indicated in the 24-hour HHmm format, where 1300 = 1:00 PM.

Usage

CurrentTime

Notes

  • Use CurrentTime_s to get the computer's current time with seconds precision.
  • Use Time and Time_s to get the time of the bar with respectively minutes and seconds precision.

Example

CurrentTime
  • Will return a value of 1015 for 10:15 AM,
  • Will return a value of 1545 for 3:45 PM.