Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nanosecond precision epoch ts on encoder and decoder #98

Open
kcrandall opened this issue Apr 24, 2020 · 1 comment
Open

Nanosecond precision epoch ts on encoder and decoder #98

kcrandall opened this issue Apr 24, 2020 · 1 comment

Comments

@kcrandall
Copy link
Contributor

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.

@n400
Copy link
Contributor

n400 commented Mar 10, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants