moment-guess
moment-guess copied to clipboard
Millisecond Support
trafficstars
Would be great to have epoch and millisecond support.
Hi @amcdnl , millisecond support is already in place, not solely, but when used with seconds in most commonly used time formats(try npx moment-guess -d '23:00:00.123'). With epoch, do you imply Unix timestamp? It would be great if you could elaborate with an example.
Yeah, it would be great to have epoch (yes Unix timestamp) support, like:
:~ jallspaw$ date
Wed Jan 12 13:33:23 EST 2022
:~ jallspaw$ date '+%s'
1642012409
:~ jallspaw$ npx -q moment-guess --date "1642012409" --format strftime
ERROR: Couldn't parse date
Ideally, we'd get back a %s for that?