Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support negative milliseconds #59

Open
ASaiAnudeep opened this issue Aug 15, 2022 · 1 comment
Open

Support negative milliseconds #59

ASaiAnudeep opened this issue Aug 15, 2022 · 1 comment

Comments

@ASaiAnudeep
Copy link

I have observed that negative milliseconds are not parsed as expected. For example

var prettyMs = require("pretty-ms@7.0.0")

prettyMs(13370); // 13.3s
prettyMs(-13370); // -13s -370ms

Expected: -13.3s
Actual: -13s -370ms

@sindresorhus sindresorhus changed the title Support Negative milliseconds Support negative milliseconds Sep 22, 2022
@sindresorhus
Copy link
Owner

Good catch 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants