Function parseDuration

Parse duration in milliseconds into days, hours, minutes, seconds, milliseconds

  • Parameters

    • durationInMs: number

      Integer of duration in milliseconds

    Returns IDuration

    Object containing days, hours, minutes, seconds and milliseconds of provided duration