Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

year2038

Year 2038 Bug: What is it? How to solve it?

February 12, 2024 by Tarik
Categories php Tags mysql, php, year2038 Leave a comment

Why do timestamps have a limit to 2038?

August 31, 2023 by Tarik
Categories php Tags php, timestamp, year2038 Leave a comment

When will System.currentTimeMillis() overflow?

March 25, 2023 by Tarik

It will overflow at System.out.println(new Date(Long.MAX_VALUE)); which prints Sun Aug 17 03:12:55 GMT-04:00 292278994 That’s thus after a bit more than 292 million years. I’d say, there’s a plenty of time to invent a solution in the meanwhile. To be honest, I don’t expect the humanhood to survive this. We exist only a few seconds … Read more

Categories java Tags java, overflow, time, year2038 Leave a comment

What should we do to prepare for 2038?

March 8, 2023 by Tarik

I have written portable replacement for time.h (currently just localtime(), gmtime(), mktime() and timegm()) which uses 64 bit time even on 32 bit machines. It is intended to be dropped into C projects as a replacement for time.h. It is being used in Perl and I intend to fix Ruby and Python’s 2038 problems with … Read more

Categories unix Tags maintainability, time, unix, year2038 Leave a comment

PHP & mySQL: Year 2038 Bug: What is it? How to solve it?

December 1, 2022 by Tarik

I have marked this as a community wiki so feel free to edit at your leisure. What exactly is the Year 2038 problem? “The year 2038 problem (also known as Unix Millennium Bug, Y2K38 by analogy to the Y2K problem) may cause some computer software to fail before or in the year 2038. The problem … Read more

Categories php Tags mysql, php, year2038 Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa