Milliseconds support

#5 · closed · 5 comments

View on GitHub ↗

fabiospampinato

An `{ms}` token for milliseconds would be great to have.

Comments

lukeed

Nice, yeah I think so. But it looks like `fff` is a much more common format (C#, .NET, java, matlab, etc). That also plays nicer with the existing code. Sound reasonable?

fabiospampinato

I've probably never met the "fff" token before, but I guess it would work. The nice thing about it is that it better represents how many numbers are going to get printed.

lukeed

Aye, that's exactly how every other lang treats it & how the current code determines the number of digits to slice :) Will do this now

fabiospampinato

Super quick, thanks!

lukeed

No problem! Thanks for the idea 👍 Now released as `1.1.0`~!