Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3612244
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:58:31+00:00 2026-05-18T21:58:31+00:00

unixtimestamp values are not liner? In the following example, I was expecting the 599

  • 0

unixtimestamp values are not liner? In the following example, I was expecting the 599 date value to be lesser than the second 600 value.

mysql> select from_unixtime(1289109599);
+---------------------------+
| from_unixtime(1289109599) |
+---------------------------+
| 2010-11-07 01:59:59       | 
+---------------------------+
1 row in set (0.00 sec)

mysql> select from_unixtime(1289109600);
+---------------------------+
| from_unixtime(1289109600) |
+---------------------------+
| 2010-11-07 01:00:00       | 
+---------------------------+
1 row in set (0.00 sec)

mysql> select from_unixtime(1289109601);
+---------------------------+
| from_unixtime(1289109601) |
+---------------------------+
| 2010-11-07 01:00:01       | 
+---------------------------+
1 row in set (0.00 sec)

When I tried similar commands on some other server, I got the following output…

mysql> select from_unixtime(1289120399);
+---------------------------+
| from_unixtime(1289120399) |
+---------------------------+
| 2010-11-07 01:59:59       | 
+---------------------------+
1 row in set (0.00 sec)

mysql> select from_unixtime(1289120400);
+---------------------------+
| from_unixtime(1289120400) |
+---------------------------+
| 2010-11-07 01:00:00       | 
+---------------------------+
1 row in set (0.00 sec)

mysql> select from_unixtime(1289120401);
+---------------------------+
| from_unixtime(1289120401) |
+---------------------------+
| 2010-11-07 01:00:01       | 
+---------------------------+
1 row in set (0.00 sec)

Update: Due to DST, I am getting the same timestamp for two different unix time values. Interesting!

mysql> select from_unixtime(1289109600);
+---------------------------+
| from_unixtime(1289109600) |
+---------------------------+
| 2010-11-07 01:00:00       | 
+---------------------------+
1 row in set (0.00 sec)

mysql> select from_unixtime(1289106000);
+---------------------------+
| from_unixtime(1289106000) |
+---------------------------+
| 2010-11-07 01:00:00       | 
+---------------------------+
1 row in set (0.00 sec)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T21:58:32+00:00Added an answer on May 18, 2026 at 9:58 pm

    This is a DST issue.

    Your mySQL server is in a time zone in which DST ended November 7, 2010 at 02:00. Clocks were turned back to 01:00, hence the discrepancy.

    More on mySQL’s time zone support in the manual.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

PLATFORM: PHP & mySQL I am storing the date+time in database in the following
I'm in a dilemma about saving date and time values in MySQL's TIMESTAMP format
When I take datatime value from database then I get java.text.ParseException: Unparseable date: 2008-06-29
I have parsed an api which returns a unixtimestamp for last updated value. I
I want to find the precent change in two values from a mysql database.
I am facing problem in retrieving long value from PostgreSQL I use the following
I am trying to increment a value (in this case a UNIX timestamp, but
Hi I'm passing a unixtimestamp to a javascript IF statement, can anyone tell me
I have a unix timestamp that I would like to convert using mysql if
what is exactly happing when creating a Unix Timestamp from a given date. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.