pydantic/speedate

Conversions for DateTime and Duration into SystemTime/Duration

luben opened this issue · 1 comments

luben commented

Having a way to convert into std::time structs would help, e.g.

impl From<DateTime> for std::time::SystemTime { ...}
impl From<&DateTime> for std::time::SystemTime { ...}
impl From<Duration> for std::time::Duration { ...}
impl From<&Duration> for std::time::Duration {...}

If this is accepted, I can pick this up.