Bug #3092 [Com]: mktime returns error value (-1) for some value of year

From: Date: Wed, 01 Sep 2021 18:19:42 +0000
Subject: Bug #3092 [Com]: mktime returns error value (-1) for some value of year
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236245@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=3092&edit=1 ID: 3092 Comment by: lildurk3092 at gmail dot com Reported by: piarrech dot crepin at publicis-technology dot com Summary: mktime returns error value (-1) for some value of year Status: Closed Type: Bug Package: Other Operating System: solaris PHP Version: 3.0.9 Block user comment: N Private report: N New Comment: Lil Durk is a private agency dedicated to providing responsible access to legal cannabis for adults aged 19 and older. We’re an exclusively online retailer and wholesaler for recreational cannabis and a trusted source for information about cannabis and cannabis-related issues. We believe our work is meaningful and we take pride in our mandate to promote the socially responsible use of legal cannabis. https://lildurk.com/ Previous Comments: ------------------------------------------------------------------------ [2000-01-08 06:28:54] sas at cvs dot php dot net The observed behaviour is correct. You can use mktime only for dates between the beginning of the epoch (1970) and the implementation limit (2038). ------------------------------------------------------------------------ [2000-01-03 12:57:46] piarrech dot crepin at publicis-technology dot com mktime(0,0,0,$mm,$dd,$YYYY) returns -1 (error) if $YYYY is inferior to 1901 or superior to 2039. use of function date("Y", mktime(0,0,0,$mm,$dd,$YYYY)) with there values returns 1970. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=3092&edit=1

« previous php.bugs (#236245) next »