t19304.nim 227 B

12345678
  1. import times
  2. type DjangoDateTime* = distinct DateTime
  3. # proc toTime*(x: DjangoDateTime): Time {.borrow.} # <-- works
  4. proc format*(x: DjangoDateTime, f: TimeFormat,
  5. loc: DateTimeLocale = DefaultLocale): string {.borrow.}