Hi there,
Im facing a problem by working with mktime function under windows OS!
What I noticed is the minimum date it can be taken is 1/January/1970 when I tried 31/December/1969 its not working! It gave me -1
In the manual it says:
"the valid range for year is somewhere between 1901 and 2038). Windows: Negative timestamps are not supported under any known version of Windows. Therefore the range of valid years includes only 1970 through 2038."
Im not using negative timestamp, Im feeding the mktime function as follows:
<?php echo mktime(0,0,0,12,31,1969); ?>
and its giving me -1! Can someone help overcome this problem, with customised function to do this job.
Im facing a problem by working with mktime function under windows OS!
What I noticed is the minimum date it can be taken is 1/January/1970 when I tried 31/December/1969 its not working! It gave me -1
In the manual it says:
"the valid range for year is somewhere between 1901 and 2038). Windows: Negative timestamps are not supported under any known version of Windows. Therefore the range of valid years includes only 1970 through 2038."
Im not using negative timestamp, Im feeding the mktime function as follows:
<?php echo mktime(0,0,0,12,31,1969); ?>
and its giving me -1! Can someone help overcome this problem, with customised function to do this job.