parent
f682bb6de0
commit
3a2ab81df1
1 changed files with 1 additions and 1 deletions
|
|
@ -479,7 +479,7 @@ proc `-=`*(t: var Time, ti: TimeInterval) =
|
||||||
t = toTime(getLocalTime(t) - ti)
|
t = toTime(getLocalTime(t) - ti)
|
||||||
|
|
||||||
proc `-`*(t: Time, ti: TimeInterval): Time =
|
proc `-`*(t: Time, ti: TimeInterval): Time =
|
||||||
## adds the interval `ti` to Time `t`
|
## subtracts the interval `ti` from Time `t`
|
||||||
##
|
##
|
||||||
## ``echo getTime() - 1.day``
|
## ``echo getTime() - 1.day``
|
||||||
result = toTime(getLocalTime(t) - ti)
|
result = toTime(getLocalTime(t) - ti)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue