Nim: time.format does not allow `.` in format string

Created on 3 Oct 2020  路  1Comment  路  Source: nim-lang/Nim

Trying to format time with milliseconds:

import times
echo now().format("yyyy-MM-dd hh:mm:ss.fff")

results in :

/external/Nim/lib/pure/times.nim(1625, 9) Error: unhandled exception: '.' is not a valid pattern [TimeFormatParseError]

Most helpful comment

Oops

>All comments

Oops

Was this page helpful?
0 / 5 - 0 ratings