faunadb-csharp icon indicating copy to clipboard operation
faunadb-csharp copied to clipboard

Nanosecond precision epoch ts on encoder and decoder

Open kcrandall opened this issue 5 years ago • 1 comments

Because C# has the limitation of 100 nanosecond precision on the DateTime object there is no way to add nanosecond time to fauna. Sometimes a user may want to store a nanosecond precision Time via a Unix epoch timestamp. Fauna has the Epoch function that can accomplish this. The encoder could take a long and run it through that function after detecting a [FaunaEpoch(EpochPrecision.Nanosecond)] attribute. Then the decoder would convert fauna time into a ts long value.

kcrandall avatar Apr 24 '20 06:04 kcrandall

Thanks for the suggestion. We have an internal ticket to track this now (DRV-536).

n400 avatar Mar 10 '21 17:03 n400