Skip to content

Commit

Permalink
fix: 시간 표기 오류 해결(시)
Browse files Browse the repository at this point in the history
  • Loading branch information
DWL21 committed Feb 6, 2025
1 parent 78e57c3 commit 9a17e06
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ data class Time(
}

fun toTimeFormat(): String {
val hours = time / HOUR_TO_MIN
val hours = (time / HOUR_TO_MIN).toString().padStart(2, '0')
val minutes = (time % HOUR_TO_MIN).toString().padStart(2, '0')
return "$hours$TIME_DELIMITER$minutes"
}
Expand Down

0 comments on commit 9a17e06

Please sign in to comment.