Questions tagged [year2038]

The "Year 2038 problem", a.k.a. Unix Millennium Bug, affects systems that use a signed 32-bit integer for the number of seconds since the "unix epoch" or 00:00:00 January 1, 1970. For such systems, the maximum date they are capable of expressing is 03:14:07 January 19, 2038.

Many "unix-like" systems express the current system time as the number of seconds since 00:00:00 January 1, 1970. For systems that use a signed 32-bit integer, which has a maximum possible value of 2,147,485,547, the maximum possible date is then 03:14:07 January 19, 2038, at which time adding one second will cause an integer overflow and result in a negative number, which will correspond to a time in the year 1901.

This Wikipedia article describes it in full.

67 questions
0
votes
1 answer

PHP - Storing unix timestamp in mysql (avoiding the time_t overflow)

I just realized about the 2038 year's problem when the unix time will be reseted to it's negative minimum range, so I decided to do a little research for this interesting topic. Right now I am designing the structure of a database (in mysql) and I…
Neo
  • 395
  • 2
  • 6
  • 23
0
votes
1 answer

Dijit/form/DateTextBox doesn't like year 2033 onwards

I'm trying to create a textbox that accepts mm/yy. For some reason this doesn't like dates beyond 2032. Can anyone tell me why not and what the solution is? Update: Problem appears to be strictly a 2 digit year issue.
vogomatix
  • 4,856
  • 2
  • 23
  • 46
0
votes
1 answer

Choose between two dates as a parameter on ssrs report builder 2008

I Need to show four parameters to show data between year and period, for example i would want to return transactions that occured between year 2011 period 12 and year 2012 period 4 ive got so far but not sure where to put my between and i guess i…
user2615341
  • 89
  • 1
  • 8
-1
votes
1 answer

How to display webpage's domain creation year in PHP

I'm trying to display the year a website's domain was created using PHP. Just the year of the webpage it's being displayed on, nothing else. So far I found this code by Greg Randall that is very close to what I'm looking for.
-1
votes
2 answers

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") fun getCalculatedYear(date: String, month: Int):…
-1
votes
1 answer

Facing the time bomb in computers?

It is about the representation of time by using an int to store the number of seconds since January 1, 1970. When will programs that use this representation face a time bomb? How should you proceed when that happens?
-2
votes
2 answers

Why don't we use full 32 bits to store 136 years since the Epoch?

I've seen it many times, e.g. on UNIX, in MySQL timestamp etc.: the Epoch starts at 1970-1-1, but the maximum recordable year is 2038. Now let me count: 2^32/60/60/24/365+1970 2106 So if we used full 32 bits, we would naturally get to year 2106…
Tomas
  • 57,621
  • 49
  • 238
  • 373
1 2 3 4
5