Skip to content

change Display implementation for Duration #170

@Thomasdezeeuw

Description

@Thomasdezeeuw

The current implementation doesn't really display smalls durations very well, for example PT0.000013825S is less then a millisecond, but that is not really easy to see. Coming from Go I really like it's Duration string implementation (click the function for source).

Go uses the following format: 72h3m0.5s. For durations smaller then a second it has special cases, e.g. 1.397068ms and even 426ns.

Any opinions on changing the implementation?

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