×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts

Changes

Jump to navigation Jump to search

DateTime2ELTime

260 bytes added, 12:48, 19 February 2012
no edit summary
The integer portion of the DateTime value specifies the number of days since January 1st, 1900, and the fractional portion of the DateTime value specifies the fraction of the day since midnight.
==== Usage ====
<syntaxhighlight>DateTime2ELTime(DateTime)</syntaxhighlight>
Where: [[DateTime]] - a double-precision decimal DateTime value
==== Example ====<syntaxhighlight>DateTime2ELTime(39449.65625000) will return :'''DateTime''' - a double-precision decimal DateTime value of 1545, indicating 3:45 PM </syntaxhighlight> .
== Notes ==
* Use [[ELTimeToDateTime_s]] or [[ELTimeToDateTime]] to convert a DateTime value to PowerLanguage's default time format of 130000 for 1:00:00 PM.
* Use [[DateTime2ELTime_s]] to convert a PowerLanguage time to a DateTime value ''with'' seconds precision.
== Example ==
<syntaxhighlight>DateTime2ELTime(39449.65625000)</syntaxhighlight>
Will return a value of 1545, indicating 3:45 PM.
[[Category:Date and Time Routines]]

Navigation menu