ammu412 Posted June 16, 2008 Share Posted June 16, 2008 Hi friends, When i am using 2042 in strtotime and mktime in php, I'm getting 1970. How can i get correct year? Do u know any other methods......................... Link to comment https://forums.phpfreaks.com/topic/110395-2042-s-chnging-to-1970-when-using-strtotime-mktime/ Share on other sites More sharing options...
thebadbad Posted June 16, 2008 Share Posted June 16, 2008 From the manual: The valid range of a timestamp is typically from Fri, 13 Dec 1901 20:45:54 GMT to Tue, 19 Jan 2038 03:14:07 GMT. (These are the dates that correspond to the minimum and maximum values for a 32-bit signed integer). However, before PHP 5.1.0 this range was limited from 01-01-1970 to 19-01-2038 on some systems (e.g. Windows). What are you trying to accomplish? There could be other methods. Link to comment https://forums.phpfreaks.com/topic/110395-2042-s-chnging-to-1970-when-using-strtotime-mktime/#findComment-566354 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.