dekarrin / rezi

REZI - Rarefied Encoding (Compressible) for Interchange
MIT License
0 stars 0 forks source link

Add support for time.Time, time.Duration #45

Closed dekarrin closed 11 months ago

dekarrin commented 1 year ago

time.Time is an extremely well-used type that may as well be a primitive in REZI. (Due to implementing encoding.BinaryMarshaler, time.Time is already supported).

It would also be nice to add/confirm support for time.Duration as it should be fairly easy to include.

dekarrin commented 11 months ago

it does support time.Time as-is, but note that Go does not serialize the Location name when converting a Time to bytes. We may want to drop a note in docs somewhere about that.