Re: Date time with millisecond output?

2017-09-25 Thread blip
> Strange that I can't find a Nim implementation of strftime, which has %f for > microseconds Yes, this is exactly what I was looking for and what I successfully used in Python (I've got something similar working in Rust as well). For the milliseconds() proc in the times docs it is

Re: Date time with millisecond output?

2017-09-25 Thread Libman
Probably not the prettiest way to do this, but here's a thought: import times, strutils let startEpochTime = epochTime() startEpochSec = ($startEpochTime).split(".")[^1] startTimeInfo = getLocalTime(fromSeconds(startEpochTime)) startTimeStr =

Date time with millisecond output?

2017-09-24 Thread blip
Is it currently possible to output date time with millisecond resolution? E.g. a date time object containing: 2017-05-29 11:08:34.768 Having looked at the [times module](https://nim-lang.org/docs/times.html), seconds seems to be the most fine grained for full dates so far. As part