mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
borrowed $ to make Time string friendly
This commit is contained in:
@@ -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>".}
|
||||
|
||||
Reference in New Issue
Block a user