Hint:
Nim's Duration in std/times has the resolution of nanoseconds, but Python's timedelta's is microseconds But to keep consist with Python, timedelta.resolution is 1 microseconds now.
Consts
TimeDeltaNone: timedelta = nil
- Source Edit
Procs
func asDuration(self: timedelta): Duration {....raises: [], tags: [], forbids: [].}
- EXT. Source Edit
func inMicroseconds(self: timedelta): int64 {....raises: [], tags: [], forbids: [].}
- Source Edit
func newTimedelta(dur: Duration): timedelta {....raises: [], tags: [], forbids: [].}
- Source Edit