+1 888 340 6572

CurrentTime: Difference between revisions

From MultiCharts
No edit summary
 
(2 intermediate revisions by 2 users not shown)
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.