Retrieve minute information  [SOLVED]

Questions about MultiCharts and user contributed studies.
no erocla
Posts: 134
Joined: 31 May 2013
Has thanked: 60 times
Been thanked: 7 times

Retrieve minute information

Postby no erocla » 22 Oct 2015

Hi all,

there is any shortcut/method to retrieve just "minute" information ?
For example a function that for time = 14:05 returns 5.

Regards
No Erocla

no erocla
Posts: 134
Joined: 31 May 2013
Has thanked: 60 times
Been thanked: 7 times

Re: Retrieve minute information

Postby no erocla » 22 Oct 2015

print(formattime("m",datetime));

but how to get integer value ?

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: Retrieve minute information  [SOLVED]

Postby JoshM » 22 Oct 2015

You can use the MinutesFromDateTime keyword for this, like so:

Code: Select all

Variables:
minutes(0);

minutes = MinutesFromDateTime(DateTime);


Return to “MultiCharts”