Seconds in Easy Language

Studies that have been contributed to the community by other users. If you’ve got something useful to share, that’s great!
johnchan
Posts: 22
Joined: 07 Sep 2006

Seconds in Easy Language

Postby johnchan » 20 Feb 2008

Is it possible to extract time in HH:MM:SS format (ie including seconds) in MultiCharts using easy language code in some way.

User avatar
TJ
Posts: 6571
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 968 times
Been thanked: 1899 times

Postby TJ » 30 Mar 2008

Time_s

Returns a numerical value indicating the closing time, including seconds, of the current bar. The time is indicated in the 24-hour HHmmss format, where 130000 = 1:00:00 PM.

Usage

Time_s

Examples

Time_s will return a value of 101525 for 10:15:25 AM
Time_s will return a value of 154500 for 3:45:00 PM


if you need it in string format, simply do a string conversion and add the :


Return to “User Contributed Studies and Indicator Library”