Skip to content

Zero pad milliseconds with 3 digits? #29

@jetersen

Description

@jetersen

Sorry for not spending more time.

I would like to zero pad weeks, days, hours, minutes with two digits and then zero pad milliseconds with 3 digits.

So you would get below output from the countdown().toString

01 day, 09 hours, 05 minutes, 03 seconds and 005 milliseconds
08 days, 02 hours, 09 minutes, 16 seconds and 095 milliseconds

Perhaps the setLabels format function could provide number and unit of said number to then zero pad differently

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions