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 flush_hash(self: timedelta) {....raises: [], tags: [], forbids: [].}
- EXT. calculate hash whatever Source Edit
func inMicroseconds(self: timedelta): int64 {....raises: [], tags: [], forbids: [].}
- Source Edit
func isTimeDeltaNone(self: timedelta): bool {....raises: [], tags: [], forbids: [].}
- Source Edit
func newTimedelta(days, seconds, microseconds: int; normalize = true): timedelta {. ...raises: [], tags: [], forbids: [].}
- CPython's new_delta C-API (private) Source Edit
func newTimedelta(dur: Duration): timedelta {....raises: [], tags: [], forbids: [].}
- Source Edit