Seconds since 1970 as a time stamp

 

Hello, how would i output in my script how many seconds has past since 1970?

I expect the number to be in a format ########## (probably quite a long number...)

Thx! I tried looking up the date time format, but im kind aconfused (and new a coding) could someone possibly write exactly what i need?

SendMail("Alert: " + sGetPeriod(Period()), TimeToStr(CurTime(),TIME_DATE) );

and i want the next line in the email to be the seconds since 1970

THANK YOU!

 

Hello, how would i output in my script how many seconds has past since 1970?

.

int secondsSince1970 = TimeCurrent();

SendMail("Alert: " + secondsSince1970);