i understand how to get 1970 but anyone know how to get other years…like 1960

# How to get seconds of time from 1960?

I wondered this myself; short of working “math” on the functions - I’m not seeing the “simple” way.

J

[quote]i understand how to get 1970 but anyone know how to get other years…like 1960

[/quote]

[quote]I wondered this myself; short of working “math” on the functions - I’m not seeing the “simple” way.

[/quote]

Because the time function works only from the year 1970, to get the number of seconds since 1960 you can do this:

- Get the number of seconds since 1970 - you already know how to do this;
- Calculate the number of seconds from 1960 to 1970, taking the leap years into account;
- Add the seconds.

Or, alternatively, you can use the mktime function.