desktop-dart / duration

Utilities to make working with 'Duration's easier.
BSD 3-Clause "New" or "Revised" License
53 stars 47 forks source link

PrettyDuration with abbreviated : true has incorrect identifier for minutes. #55

Closed bruntzcreative closed 1 year ago

bruntzcreative commented 2 years ago

This code snippet produces 5h, 33min, 20s. I expected min to be abbreviated to m.

  prettyDuration(
    Duration(milliseconds: 20000000),
    abbreviated: true,
  );
bdlukaa commented 1 year ago

m is the abbreviation for meters. min is the abbreviation for minutes

bruntzcreative commented 1 year ago

m Is ok if there is no possibility of confusion with meters IMO. I think having an option to use it would be helpful for smaller displays.