mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-23 19:36:53 +00:00
@@ -479,7 +479,7 @@ proc `-=`*(t: var Time, ti: TimeInterval) =
|
||||
t = toTime(getLocalTime(t) - ti)
|
||||
|
||||
proc `-`*(t: Time, ti: TimeInterval): Time =
|
||||
## adds the interval `ti` to Time `t`
|
||||
## subtracts the interval `ti` from Time `t`
|
||||
##
|
||||
## ``echo getTime() - 1.day``
|
||||
result = toTime(getLocalTime(t) - ti)
|
||||
|
||||
Reference in New Issue
Block a user