On 2001-05-05 21:19:26, [EMAIL PROTECTED] wrote:
>
> Do we want the internal representation to be a string?

It's probably easiest.

> [struct GDate] fits nicely inside 64 bits so you can store it as a
> number in databases and such. Maybe we can use something like this but
> with time info included [...]

If you include time info, it no longer fits into 64 bits. Given that the
average case for the format I proposed is 128 bits[*], it's probably not
worth the hassle of an explicit byte ordering and a fixed-length data
structure to use a non-ASCII representation.

> [...] and write some XS around it. That would make it both more
> compact and probably faster.

I'm going to be writing something very similar for Time::TAI in any
case. I'll see if I can think of a compact serialisation format.

Suggestions are welcome.

- ams

    [*] The worst case (assuming millisecond resolution) is 192 bits.

Reply via email to