Need seconds past since 1970

 

In the Documentation it tells me that datetime represents the number of seconds past since 1970. That's exactly what I want. BUT when I attempt to put the seconds past since 1970 into a variable it gives me an error.


int _TheSeconds;


_TheSeconds = datetime;


That gives me an error.


All I want is the total seconds past since 1970.


Thanks for any help!

 

you mean this i think - "datetime" is a 'datatype' u give to identifier:

datetime _TheSeconds;

_TheSeconds = TimeCurrent();

maybe u read mql4 book ? - it ans such things...

Best

 
Yeah that's exactly what I wanted. Thank you.