Why UUID v1 timestamp measured from 00:00:00.00, 15 October 1582 and not the unix epoch?
-
Why was the timestamp based UUID considers time from the start of the Gregorian calendar and not the more commonly used unix epoch? RFC for UUID: http://www.ietf.org/rfc/rfc4122.txt
-
Answer:
As per RFC-4122, a UUID should always use a 60-bit count of the number of 100-nanosecond intervals from the start of the Gregorian Calendar when operating on a system where UTC is available. This is a standard put in place to maximize entropy in the output hash, since UUID's are intended to be unique identifiers. There are some other cases in section 4.1.4 that detail fallbacks in case there is no UTC support: http://www.ietf.org/rfc/rfc4122.txt
Mark Grey at Quora Visit the source
Other answers
One possibility: Look at the affiliation of the document author :)
Toby Thain
The UUID is largely a formalization of the GUID notation invented by Microsoft, where timestamps use the same epoch as the http://msdn.microsoft.com/en-us/library/windows/desktop/ms724284(v=vs.85).aspx. It's safe to assume that when the RFC was authored (by Microsoft) they were strongly motivated to keep it compatible with all the GUIDs already in circulation, which meant keeping a compatible epoch. Editorial note: One of the rather significant downsides to the choice of UUID epoch is that modern timestamps require 60-bit precision; they can't be accurately represented with http://en.wikipedia.org/wiki/Double-precision_floating-point_format. This makes working with UUID timestamps in languages like JavaScript, where all numbers are represented in this format, problematic.
Robert Kieffer
Related Q & A:
- Is there any functional-like Unix shell?Best solution by Super User
- Unix tools: what if a file is named minus something?Best solution by Super User
- How to get the timestamp of linux kernel?Best solution by Stack Overflow
- How to execute Unix shell script from Windows?Best solution by Stack Overflow
- How is mechanical energy measured?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.