Skip to content

Conversions from milliseconds are rounded #140

Description

@gmattie
ms("2.5 hrs") // 9000000
ms("9000000") // 3h
ms("9000000", { long: true ) // 3 hours

The above code returns "3h" or "3 hours" when a total of 2.5 hrs in milliseconds is parsed.

If there are technical limitations to returning accurate string representations, it would be ideal to provide an example and explanation in the repository readme.md.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions