Req #10160 [Com]: Unix timestamp doesnt go over Tuesday 19 January 2038 05:11

From: Date: Wed, 01 Sep 2021 18:39:56 +0000
Subject: Req #10160 [Com]: Unix timestamp doesnt go over Tuesday 19 January 2038 05:11
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236267@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=10160&edit=1 ID: 10160 Comment by: lildurk10160 at gmail dot com Reported by: keith at waters dot co dot za Summary: Unix timestamp doesnt go over Tuesday 19 January 2038 05:11 Status: Closed Type: Feature/Change Request Package: Feature/Change Request Operating System: RedHat Linux PHP Version: 4.0.4pl1 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: ------------------------------------------------------------------------ [2002-04-27 15:14:12] jimw@php.net use a c library with a 64-bit time_t. ------------------------------------------------------------------------ [2001-04-04 11:00:07] keith at waters dot co dot za As you know, most of PHP's date and time functions use the unix timestamp, which wont go past Tuesday 19 January 2038 05:11, numberically represented by 2147483648 (ie 30 bits) Surely PHP can get clever and work around this? (ie allow bigger values which will translate back and forth properly up to the year 9999?) Otherwise we will all find outselves with a Y2K-like date nightmare! eg: currently: echo mktime(0,0,0,1,1,2099); outputs -1 and putting any number past 2147483648 into date() wont give you anything past Tuesday 19 January 2038 05:11 Thanks! regards, Keith ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=10160&edit=1

« previous php.bugs (#236267) next »