Skip to content

Explicit operator for DuckDBInterval to TimeSpan #111

Description

@Seddryck

I was wondering if it would make sense for you if I'd submit a PR to add an explicit operator for DuckDBInterval to transform it into a TimeSpan. I won't implement an implicit operator as the DuckDBInterval is richer than the TimeSpan type (regarding the capability to define an interval based on months/years).

I could also add the reverse operators (from TimeSpan to DuckDBInterval) and in that case, both the implicit and explicit operators.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions