desktop-dart/duration

Remove debug logging from printDuration

jeffjose opened this issue · 2 comments

Looks like printDuration has a debug logging in. See here

Reproduced below

String printDuration(Duration duration,
    {DurationTersity tersity = DurationTersity.second,
    DurationLocale locale = const EnglishDurationLocale(),
    String spacer,
    String delimiter,
    String conjugation,
    bool abbreviated = false}) {
  final String fmt = prettyDuration(duration,
      tersity: tersity,
      locale: locale,
      spacer: spacer,
      delimiter: delimiter,
      conjunction: conjugation,
      abbreviated: abbreviated);
  print(fmt);
  return fmt;
}

Opened #33 and #32

Guys what part of printDuration dont you understand. It is meant to print. If you just want to convet use prettyDuration. Also read the docs.