Jay Pipes wrote:
Jim Starkey wrote:
Roland Bouman wrote:
Hi!
I'm sorry I can't comment on the inheritance issue. However, I would
like to throw in my 2 cts regarding the naming of the type.
This maybe a bikeshed thing, but I think it would be better to name
the type exactly after what it is capable of. I mean, HIRES probably
means "high resolution", but the problem with that type of naming
schemas is that they age. What is nowadays considered "high" may be
considered "medium" or "low" in the future.
So, I would rather suggest to go for TIMESTAMP_NS_PRECISION or
TIMESTAMP_NANOS or even TIMESTAMP_NANOSECOND_PREC or
TIMESTAMP_NANOSECOND_PRECISION because that clearly and unambiguously
(?) declares the scope of the type.
Hey, you guys work for Sun. Rather than TIMESTAMP_HIRES, shouldn't
it be TIMESTAMP_ONBOARDED?
Incidentally, whatever it's called, it works just fine. Interbase,
and later Firebird, have been using it since 1984. The Rdb products
uses a 64 bit representation of the number of "klunks" (100
microsecond unit, the precision of the VAX internal clock) since
November 17, 1858. I switched to discrete date (days since base
base) and time since midnight.
Cool. Here is the encoding scheme I came up with for DATETIME in 8
bytes:
Why not just make it two 32 bit integers, one for day and one for time.
Infinitely easier to handle.
--
Jim Starkey
President, NimbusDB, Inc.
978 526-1376
_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help : https://help.launchpad.net/ListHelp