Gmmktime with invalid parameters

i would like to calculate seconds for year lessthan 1900 and greaterthan 2037.
but gmmktime will accept 1902 to 2037 years only.
is there any other way to get result?

actually i used gmmktime for the years,
=> gmmktime(0,0,0,1,1,1900); or gmmktime(0,0,0,1,1,2099);
But gmmtime wont accept year 1900 or 2099.
is there any other way to get result as seconds for those years?

The DateTime object has no such limitations. :slight_smile:

Use DateTime!