Skip to content

Nanosecond precision epoch ts on encoder and decoder #98

@kcrandall

Description

@kcrandall

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions