like this?
    
    
    import times
    
    proc now(): string = # module.now() won't conflict with times.now
      when NimVersion == "0.17.2":
        $getLocalTime(getTime())
      else:
        $times.now()
    
    proc info(msg: string) = echo(now(), " INFO ", msg)
    
    info("Hello world")
    

Reply via email to