platform
    Preparing search index...

    Function formatDurationBetween

    • 두 UTC 시간 문자열 사이의 소요시간을 한글 형식으로 변환

      Parameters

      • startedAt: string

        시작 시간 (UTC string)

      • finishedAt: string

        종료 시간 (UTC string)

      Returns string

      한글 형식의 소요시간 문자열 (유효하지 않은 경우 '-')

      formatDurationBetween('2025-01-01T00:00:00Z', '2025-01-01T01:30:45Z') // '1시간 30분 45초'
      formatDurationBetween('2025-01-01T00:00:00Z', '2025-01-01T00:01:30Z') // '1분 30초'