Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Year 2038why is the maximum year 2038

Why is the maximum year on the iphone 5 set to 2038 even tho it use to be infinite

iPhone 5, iOS 7.1.1

Posted on May 7, 2014 10:45 AM

Reply
27 replies

Feb 11, 2017 11:55 PM in response to ghozali

Why is my 2038 still not fix where in iPhone 7 it seems fixed?

The iPhone 7 has a 64-bit processor and its version of iOS is not using a 32-bit word for the date/time, so it is not limited to the year 2038.


A later version of iOS for a 32-bit iPhone may use a 64-bit word for the date/time to avoid the 2038 problem, but there is no reason for Apple to bother since they haven't made 32-bit iPhones for several years and it is very unlikely that any will still be working in 2038. (Anyway, they will be out of warranty)

May 7, 2014 11:17 AM in response to Jackbigpid99

1st, how have you determined the iPhone 5 has a 2038 limit in the operating system? Or is it an app?


While I'm not sure about iOS, I can say that the 32-bit Mac OS X kernels have had 64-bit time values for years (I can directly test a 10.6 system, but I'm sure they were 64-bits before that). So I would be surprised if iOS was using a 32-bit time value. But at this moment I can not confirm


As to where 2038 comes from, it is 2 billion seconds (2,147,483,647 really) since 1970, which is the starting date for Unix time values. And the 2 billion comes from the maximum value a signed 32 bit value can hold (0x7fffffff in hex).


Regardless of what the iPhone 5 has for its maximum operating system date, I would be fairly confident that the iPhone 5s with its 64-bit operating system will be using a signed 64-bit value in time calculations. That should last until the year 292,471,210,647 😁

May 7, 2014 11:42 AM in response to Jackbigpid99

Fairs fair, you didn't answer my question. How have you determined that the iPhone 5 has a maximum year of 2038.


Is it the iOS operating system? And if so, what version (5, 6, 7)?


Is it an app (calendar, a 3rd party calendar, notifications, ...)?


As to why Apple does anything, they rarely tell us, and since this is a User-to-User forum, non-of us would know the real answer.

But if you tell us your source of information, and the component involved, someone might have a clue, or a rationalization.

May 7, 2014 12:05 PM in response to Jackbigpid99

Again, the calendar and other apps all support dates far beyond 2038.


The date held on the iPhone itself may not, but I can see no reason why at this time you would need to set the date on the iPhone that far in advance, or for that matter to any date other than today. I'm sure that by the time we get to 2038, whatever version of iOS is then current will support setting dates to further years, but I'd wager you'll have a different phone by then.


Regards.

May 7, 2014 12:08 PM in response to Jackbigpid99

I took the iOS 7 calendar app to 2112, and at that point I got tired of flicking the date wheel.


Chance are this is just a specific app limitation (Settings is just an App) where that app does not bother working with 64-bit time values, and is just using 32-bit values.


I'm sure that by the time 2038 comes around, Settings will have been updated.

Year 2038why is the maximum year 2038

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.