src/pylib/Lib/datetime_impl/timedelta_impl/decl

Source   Edit  

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.

Types

timedelta = ref object
  
Source   Edit  

Procs

func `==`(self: timedelta; o: timedelta): bool {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
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 hash(self: timedelta): int {....raises: [], tags: [], forbids: [].}
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  

Converters

converter toBool(self: timedelta): bool {....raises: [], tags: [], forbids: [].}
delta_bool Source   Edit