src/pylib/Lib/datetime_impl/timedelta_impl/decl

Search:
Group by:
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 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  

Converters

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