borrowed $ to make Time string friendly

This commit is contained in:
Alfred Morgan
2022-05-21 03:30:40 -07:00
parent 06f02bb771
commit 10e2e44c9a

View File

@@ -674,6 +674,7 @@ proc clock_nanosleep*(a1: ClockId, a2: cint, a3: var Timespec,
proc clock_settime*(a1: ClockId, a2: var Timespec): cint {.
importc, header: "<time.h>", sideEffect.}
proc `$`*(a: Time): string {.borrow.}
proc `==`*(a, b: Time): bool {.borrow.}
proc `-`*(a, b: Time): Time {.borrow.}
proc ctime*(a1: var Time): cstring {.importc, header: "<time.h>".}