From  http://home.famkruithof.net/guid-uuid-timebased.html



Generally a programmer does not get the current time in 100 nanosecond intervals since 15 October 1582, but for instance in millisecond precision since 1 January 1970. In this case, to come from milliseconds to nanoseconds precision multiply the time returned from the system by 10000 and to correct the start date add an offset of 122192928000000000.



Best,

Mark

On 1 Dec 2006, at 17:35, Bill Marriott wrote:

And Rev's "the milliseconds" returns the total number of milliseconds since the "start of the eon" -- which is midnight GMT, January 1, 1970. Ticks is the same, but returns 1/60th of a second. I don't think we have a way of
accessing nanoseconds (billionth of a second).


"Mark Wieder" <[EMAIL PROTECTED]> wrote in
message news:[EMAIL PROTECTED]
Bill-

Thursday, November 30, 2006, 1:18:01 PM, you wrote:

I love this comment from the rfc:

   /* NT keeps time in FILETIME format which is 100ns ticks since
      Jan 1, 1601. UUIDs use time in 100ns ticks since Oct 15, 1582.
      The difference is 17 Days in Oct + 30 (Nov) + 31 (Dec)
      + 18 years and 5 leap days. */

Gotta love those Microsoft "standards", dontcha?



_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to