Skip to content

Add a way to omit last unit #68

@ClementCardonnel

Description

@ClementCardonnel

Hello!
Just a quick word to say that a feature to be able to omit the last unit would be appreciated.

Example
// 
Duration duration = Duration(hours: 4, minutes: 30);

// 4h30min
prettyDuration(
        duration,
        abbreviated: true,
        tersity: DurationTersity.minute,
        delimiter: '',
        spacer: ''
)

I'd like a way to omit the last unit, in this case the minutes. Which would make 4h30.

Thank you for considering this suggestion!

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