Fix for `$`(0).
This commit is contained in:
parent
3d87707b07
commit
a2b85a8126
|
@ -400,8 +400,7 @@ func `$`*(a: Duration): string {.inline.} =
|
|||
if v >= Microsecond.value:
|
||||
result &= $(v div Microsecond.value) & "us"
|
||||
v = v mod Microsecond.value
|
||||
if v >= Nanosecond.value:
|
||||
result &= $(v div Nanosecond.value) & "ns"
|
||||
result &= $(v div Nanosecond.value) & "ns"
|
||||
|
||||
func `$`*(a: Moment): string {.inline.} =
|
||||
## Returns string representation of Moment ``a`` as nanoseconds value.
|
||||
|
|
Loading…
Reference in New Issue