I would like to create a timestamp as string using the times module. As I can see in the docs now() is current timestamp but I get:
Error: undeclared identifier: 'now'
How can I create a timestamp as string?
import times
echo $now()
and you can use format if you need a more specific string https://nim-lang.org/docs/times.html#parsing-and-formatting-dates