Hi,

Nim told me it can't find times.now(), which is documented here:

[now](https://nim-lang.org/docs/times.html#now,)

This small examples fails to compile for me:
    
    
    import times
    
    proc info(msg: string): void {.nimcall, gcsafe.} =
      echo($now() & " INFO " & msg)
    
    info("Hello World!")
    

with error:
    
    
    testnow.nim(4, 9) Error: undeclared identifier: 'now'
    

And my Nim version:
    
    
    C:>nim --version
    Nim Compiler Version 0.17.2 (2017-09-07) [Windows: amd64]
    Copyright (c) 2006-2017 by Andreas Rumpf
    

What am I doing wrong?

Reply via email to