Difference between revisions of "DateTime2ELTime s"

From MultiCharts
Jump to navigation Jump to search
Line 9: Line 9:
  
 
==== Example ====
 
==== Example ====
<syntaxhighlight>DateTime2ELTime_s(39449.646354167)</syntaxhighlight> will return a value of 153045, indicating 3:30:45 PM  
+
<syntaxhighlight>DateTime2ELTime_s(39449.646354167)  will return a value of 153045, indicating 3:30:45 PM </syntaxhighlight>
 
   
 
   
  
  
 
[[Category:Date and Time Routines]]
 
[[Category:Date and Time Routines]]

Revision as of 11:19, 19 January 2012

Returns a numerical value indicating the time, including seconds, from the specified DateTime value. The time is indicated in the 24-hour HHmmss format, where 130000 = 1:00:00 PM.

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

DateTime2ELTime_s (DateTime)

Where: DateTime - a double-precision decimal DateTime value

Example

DateTime2ELTime_s(39449.646354167)  will return a value of 153045, indicating 3:30:45 PM