What can I do in my code today, to prevent the unix time stamp running out in 2038?

2013-01-18T03:06:10

For example, I mostly program in PHP. What can I do today to prevent my program from exploding in 2038 due to unix time stamp running out? I would love to see some specific algorithms, functions or logics that can work to prevent this problem. Thanks.

Copyright License:
Author:「KoKo」,Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.
Link to:https://stackoverflow.com/questions/14386260/what-can-i-do-in-my-code-today-to-prevent-the-unix-time-stamp-running-out-in-20

About “What can I do in my code today, to prevent the unix time stamp running out in 2038?” questions

For example, I mostly program in PHP. What can I do today to prevent my program from exploding in 2038 due to unix time stamp running out? I would love to see some specific algorithms, functions or
I need to check if a Unix time-stamp (stored as a long) represents today (in my time zone). This is where I am at, but it doesn't seem very elegant: Calendar tokenTimestamp = Calendar.getInstance();
So I decided that I would be cool to make a script that tells how much time there is until Unix time resets (on 32 bit systems its the year 2038 problem, 2038-01-19 03:14:07) and I figured it out, ...
Starting out with an int variable unix time stamp (something like 1290341015), is there a way to get this into a nice human readable date string? The iPhone Mail app has the ideal display of date, ...
I'm using PHP and MySQL. I need to store a unix time stamp each time one of my users accomplish a given action. I only need an hourly detail level. Is there any reason why I shouldn't reduce sto...
I have a requirement to connect to an FTP server from Unix, and download a particular file which has the most recent date/time stamp. For example here is what the file name might look like:
How do you format from unix time stamp to local time in Django. The time template filter does not appear to work, {{ unix_time_value|time:"TIME_FORMAT"}} What is the correct way?
I always struggled with this, making a unix time stamp in the past, I need to find all records in mysql that are older than 30 days, but can't seem to think of a way to do this without writing a lo...
I have a mysql database that store timestamp in a varbinary column and my goal is to convert this to unix time stamp so I can do a elapse time between two time slots. +---------+------------+----...
For some reason, I cannot get strtotime('+1 month) to work. Here is my code; $Date = $_REQUEST['date']; //This is a unix time stamp $Start = $_REQUEST['start']; //This is a unix time stamp $End...

Copyright License:Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.