Since the doc has "Deprecated since v...", "Available since v..." would be 
useful too; I assumed "now()" existed for ever.

Anyway, I found the local doc folder, and it seems the equivalent in 0.17.2 is 
"getLocalTime(getTime())". Unfortunately, "getLocalTime()" is deprecated. How 
do I write this so it works without deprecation in 0.17.2 AND 0.18.0?
    
    
    import times
    
    proc nows(): string =
      when false:
        $now()
      else:
        $getLocalTime(getTime())
    
    proc info(msg: string): void {.nimcall, gcsafe.} =
      echo(nows() & " INFO " & msg)
    
    info("Hello World!")
    

Reply via email to