Difference between revisions of "Time"
Jump to navigation
Jump to search
(→Usage) |
|||
Line 1: | Line 1: | ||
− | Returns a numerical value indicating the closing time of the current bar. The time is indicated in the 24-hour HHmm format, where 1300 = 1:00 PM. | + | Returns a numerical value indicating the closing time of the current bar. The time is indicated in the 24-hour ''HHmm'' format, where 1300 = 1:00 PM. |
− | + | == Usage == | |
<syntaxhighlight>Time</syntaxhighlight> | <syntaxhighlight>Time</syntaxhighlight> | ||
− | == | + | == Notes == |
− | + | * See the category [[:Category:Date_and_Time_Routines|Date and Time Routines]] for working with time in PowerLanguage. | |
− | + | * Use [[Time_s]] to get the time of the bar with seconds precision. | |
− | + | * Use [[CurrentTime]] and [[CurrentTime_s]] to get the ''computer time'' with respectively minutes and seconds precision. | |
+ | == Example == | ||
+ | <syntaxhighlight>Time</syntaxhighlight> | ||
+ | * Will return a value of 1015 for 10:15 AM, | ||
+ | * Will return a value of 1545 for 3:45 PM. | ||
[[Category:Data Information/General]] | [[Category:Data Information/General]] |
Revision as of 12:11, 19 February 2012
Returns a numerical value indicating the closing time of the current bar. The time is indicated in the 24-hour HHmm format, where 1300 = 1:00 PM.
Usage
Time
Notes
- See the category Date and Time Routines for working with time in PowerLanguage.
- Use Time_s to get the time of the bar with seconds precision.
- Use CurrentTime and CurrentTime_s to get the computer time with respectively minutes and seconds precision.
Example
Time
- Will return a value of 1015 for 10:15 AM,
- Will return a value of 1545 for 3:45 PM.