General > Off-Topic

Timing system

(1/2) > >>

iViscosity:
I didn't really know how to name this, sorry, but I was wondering where I could find more information about the quote timing system. Like, when you make a quote you'll see a number like '1467087715', or something like that, what do each of those numbers relate to?


Edit: After posting and quoting, I see 'date=1475419431', how is that determined?

Bytewave:
The quote part is simply an incremental counter. First you have the topic ID, then you have the message ID. These are simply incremental counters in the database behind the site.
The message ID, you might notice, is quite large for this topic. That's because its ID doesn't care about which post it's on. It only cares about its position relative to the rest as it's in its own database table.

The date part is a bit more complicated, but it's still simple. It's merely what's known as a Unix timestamp, or Epoch time. The Epoch is defined as January 1st,1970 at exactly 0000 hours UTC. The Epoch timestamp is merely the number of seconds since that time, and has become the standard for timestamps (well, there are other formats, but Epoch time is the easiest).

iViscosity:
I figured it was seconds, I just didn't know since when. Thanks.

Bite That Apple:
Unix is considered the beginning of time for computer clock. Unix itself is not entirely used that much, since a lot of things digital now.

Bytewave:

--- Quote from: Bite That Apple on October 03, 2016, 11:47:23 AM ---Unix is considered the beginning of time for computer clock. Unix itself is not entirely used that much, since a lot of things digital now.

--- End quote ---
Uhh... Unix is super common, actually. It's actually a big issue (see the Year 2038 Problem). Seconds are considerably easier to work with than a timestamp, and most timestamps are just converted to Unix time when you work with them anyway.
The drawback of Unix time is dates before 1970 will not work properly, but that is typically ignored---why would you work with anything before 1970? There are systems in place if you need dates before that, but Unix time is reliable (if you're using 64-bit numbers to store the timestamp, that is!).

Navigation

[0] Message Index

[#] Next page

Go to full version