8000 float_as_datetime doesn't handle millisecond fractionals properly · Issue #1750 · pydantic/pydantic-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
float_as_datetime doesn't handle millisecond fractionals properly #1750
Open
@ollz272

Description

@ollz272

See pydantic/pydantic#12027 for related issue
and #1749 for a test showing failure.

I feel like the solution is:

  1. once implementing the validator (which is how i found this), have some logic in here to determine if its a millisecond/second timestamp and handle differently. Though that feels kinda nasty to do here when speedate should handle?
  2. have speedate have a function that can take floats and handle properly.

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

      0