Subject | Re: [Firebird-Architect] Data Stream Encoding |
---|---|
Author | Jim Starkey |
Post date | 2005-05-03T11:50:45Z |
Martijn Tonies wrote:
from the base database (date, java.util.Date) and the other the number
of nano-seconds (timestamp, java.sql.Date). Since most dates are just
dates and the rest carry precision to only seconds, this is a
substantial waste of space, but I really don't want to waste the cycles
during encoding to determine the number of trailing decimal zeros. If
anybody has any better ideas, speak up.
>And how about a higher precision for milliseconds?I finally settled down to two date/time classes, one in milliseconds
>
>
>
from the base database (date, java.util.Date) and the other the number
of nano-seconds (timestamp, java.sql.Date). Since most dates are just
dates and the rest carry precision to only seconds, this is a
substantial waste of space, but I really don't want to waste the cycles
during encoding to determine the number of trailing decimal zeros. If
anybody has any better ideas, speak up.