Fix #6010 documenting subtracting time interval (#6012)

This commit is contained in:
Euan T
2017-06-22 12:52:13 +01:00
committed by Andreas Rumpf
parent f682bb6de0
commit 3a2ab81df1

View File

@@ -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)