Skip to content

Add support for datetime objects #1

Closed

Description

@jcrist

It'd be useful to add support for datetime objects. I'm not sure how we'd want to go about serializing these, there's a few different options:

  • datetime.datetime: Could use the Timestamp extension, or as a string according to e.g. ISO 8601.
  • datetime.timedelta/datetime.time/datetime.date: Custom extension format? Or as a string per ISO 8601?

We likely need to support the extension type for timestamps, the string format may(?) be useful as well, and may provide nicer parity with other types if we decide to implement those as string formats.

Activity

  1. dhagrow commented on Feb 25, 2021

    @dhagrow

    Hi, just came across this library and I plan on giving it a try. You might consider temporenc for datetime objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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