Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,383
    Thanks
    264
    Thanked 32 Times in 31 Posts

    Curious about UNIX timestamp vrs UTC

    I have noticed in my site php chat logs that my message posting timestamps are about 8 min off from my desktop time.

    I know that timestamps are not really a true representation of UTC but i am curous if this difference is mostly caused by leap seconds that have built up over time.

    Thanks

  • #2
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,383
    Thanks
    264
    Thanked 32 Times in 31 Posts
    Fou-Lu any thoughts on this

  • #3
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    The problem with time is that the earth isn't rotating at a constant rate. So it doesn't really matter what measurement you use, it will always be inaccurate (at least any system related to the rotation of the earth). But 8 minutes is way too long, at the most I'd expect a few seconds of difference if it were caused by a leap second issue.
    I would suggest that one of the clocks isn't synced properly. Which one is unknown, both are feasible to be out by that amount of time. There are a few timezones that work in 0.25 and 0.5 hour blocks, but there doesn't appear to be that many. At 8 minutes off, that doesn't sound to be a correction for a timezone or DST or anything like that, it just sounds to be a system clock that's off.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

  • Users who have thanked Fou-Lu for this post:

    durangod (03-04-2013)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •