Skip to content

Support Duration formatting #5

@LukasAnda

Description

@LukasAnda

Hey, thanks for the library, I recently found it and I think it is very useful. I am using it in my stopwatch application, which formats the time in HH:MM:SS format and I was thinking, why not directly support durations from Kotlin? I think, since there are already formatters for time, it should be quite a nice addition.

So for example this: "%tH:%tM:%tS".sprintf(2.hours + 3.minutes + 156.seconds) would produce 02:05:36 (due to seconds overflowing to minutes)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions