70 questions
4
votes
0
answers
140
views
Chrono: timestamp after 2038
I'm having some issues using chrono after 2038.
My system is a 32Bit system with the following configuration
Kernel: 5.15.118
GCC: 13.2.0
GLIBC: 2.38
I have compiled my program with the flags ...
1
vote
0
answers
506
views
2038 Bug | How to handle on a yocto builded 32Bit System
I'm encountering some issues while working with Yocto and Linux kernel configuration to address the Year 2038 problem.
What i did so far:
Added : TARGET_CPPFLAGS += "-D_TIME_BITS=64 -...
-1
votes
2
answers
2k
views
How to get current year , previous years and next years after click on button In android kotlin which will also work fine in under android version 8
I want to get next 5 years after from now and i am using this below code . It work fine in above android version 8 device .
@RequiresApi(Build.VERSION_CODES.O)
@SuppressLint("SimpleDateFormat&...
5
votes
1
answer
1k
views
Is it guaranteed to be 2038-safe if sizeof(std::time_t) == sizeof(std::uint64_t) in C++?
Excerpted from the cppref:
Implementations in which std::time_t is a 32-bit signed integer (many
historical implementations) fail in the year 2038.
However, the documentation doesn't say how to ...
1
vote
1
answer
60
views
i've to union two different tables sym33 and sym and then check the difference of max svcdate and min svcdate which should be greater then 90 days
create temporary table sand_scipher_ds_db.public.Rf as (
select PATIENTID, max(SVCDATE)-min(SVCDATE) as days from symphony_hvh_db.sym33.dx
union all
select PATIENTID, max(SVCDATE)-min(...
0
votes
0
answers
9
views
Created the formula but now have to break it up into years; there is a years column in original data seat with header for years
As title suggests, I created a result with a formula but now need to break it up into having the formula run for every "owner" but seperate the formula into years. I have the dates 2010-2019....
1
vote
1
answer
971
views
How do ext2/3/4 filesystems deal with 64 bit time_t?
I am working on small ext2 filesystem image manipulation tool (like listing directories, adding and extracting files without the need to mount it).
I've just came into a problem with Unix timestamp ...
1
vote
1
answer
507
views
How to add range validation for year in flutter
I've tried to add year range validation it must be between 1850 to the current year. i've tried but it's not working.
Here is the code I've tried
String validateestablishedyear(String value) {
...
0
votes
2
answers
160
views
touch function in PHP 7 64-bit does not handle dates beyond 2038
On PHP 7.2.14 64-bit, on Windows, touch() cannot set a file's date to a date after 2038. filemtime() will read such a file's date fine (date was set with an external tool).
Is this expected behavior?...
6
votes
3
answers
1k
views
time_t to boost date conversion giving incorrect result
I have a collection of unix timestamps I am converting to boost (1.65.1) dates but the conversions seem to break down when they get too far in the future. Anything around 2040 and beyond seems to be ...
3
votes
3
answers
1k
views
How to choose MySQL column data types resilient to year 2038 -rollover?
January 19, 2038 03:14:07 GMT is now less than 20 years away. That's the time that UNIX's 32-bit timestamp rolls over. I'm working on designing some MySQL tables that may still be in use at that time....
8
votes
1
answer
240
views
Error converting to UTC after 2038 on 64 bit unix PHP
I need to convert date time information from local time (gtm+1) to UTC using php (5.4)
on Centos 7.4 64 bits
I tried the following procedure :
function convertToUtc ($date)
{
$dateTime = new ...
2
votes
1
answer
380
views
How to make os.time() compatibility on a 32bit machine in Lua 5.1?
As a result of the Year 2038 problem(https://en.wikipedia.org/wiki/Year_2038_problem), we get nil after calling os.time({year=2039, month=1, day=1, hour=0, sec=1}) on a 32bit machine.How to make it ...
10
votes
2
answers
4k
views
Why std::chrono::time_point is not large enough to store struct timespec?
I'm trying the recent std::chrono api and I found that on 64 bit Linux architecture and gcc compiler the time_point and duration classes are not able to handle the maximum time range of the operating ...
4
votes
3
answers
2k
views
calendar time stored as a signed 32-bit integer - when will it overflow
I'm going through exercises from Advanced Programming in Unix and encountered the following question:
If the calendar time is stored as a signed 32-bit integer, in which year will it overflow?
...
0
votes
1
answer
430
views
php - date reset to 1970 at 2038 while adding in a loop [duplicate]
I have been trying to generate a list of years and months based on some integer value provided by user in my PHP based web app. While doing this I faced the year 2038 bug, the year got reset to 1970 ...
4
votes
5
answers
9k
views
Convert Epoch to DateTime SQL Server (Exceeds Year 2038)
How to convert Epoch to DateTime SQL Server if epoch exceeds the year 2038?
Answer in Convert Epoch to DateTime SQL Server will not work.
Example:
SELECT DATEADD(ss, 2713795200000 / 1000, '19700101'...
1
vote
1
answer
1k
views
PHP: setcookie() to expire after the year 2038
Currently I'm converting all my PHP unix timestamps to work beyond 2k38 issue.
I noticed that setcookie() expire date parameter uses the unix timestamp. Is there a way to set expire date with ...
27
votes
3
answers
6k
views
Year 2038 solution for embedded Linux (32 bit)? [duplicate]
What is the proper way to handle times in C code for 32-bit embedded Linux (ARMLinux) to ensure that the code continues to work properly after 03:14:07 UTC on 19 January 2038 (when a signed 32-bit ...
0
votes
1
answer
471
views
PHP Year 2038 Not a Bug?
I am new to PHP and from the book that I am reading, I realize there is a year 2038 problem, which states that when I use timestamp, the furthest date I can reach will be Jan 19, 2038. In order to ...
7
votes
1
answer
1k
views
"Year 2038 _problem" in Google Calendar API (Android application)
I'm building an Android application and the application enables the user to insert events to Google Calendar and external calendar (like Exchange account).
The problem is that if the user wants to ...
3
votes
1
answer
523
views
PHP how can i localize date after 2038
i try to to use localized dates after 2038 with php
strftime use Timestamp so it doesnt work after 2038
DateTime is not localized...
So I try to use IntlDateFormatter with DateTime :
$d = DateTime:...
1
vote
1
answer
242
views
PHP mktime does not return big integer values on 64-bit system
I have an issue with PHP function mktime when trying to get unix_timestamps bigger that for year 2038. I have 64-bit OS.
PHP version on server:
php -v gives
PHP 5.1.6 (cli) (built: Nov 29 2010 16:47:...
2
votes
1
answer
111
views
Year 2038 bug, can I deviate from the OpenPGP RFC?
The RFC 4880, a document that describes the OpenPGP cryptography standard, finds its roots in RFC 2440, published in 1998 (that's sixteen years ago, supposedly before 64-bit systems emerged). Both ...
11
votes
5
answers
9k
views
Why can JavaScript handle timestamps beyond 2038?
As we know that all dates using Javascript Date constructor are calculated in milliseconds from 01 January, 1970 00:00:00 Universal Time (UTC) with a day containing 86,400,000 milliseconds. This ...