Skip to content

Commit 0aa80bd

Browse files
Delete unused line
1 parent c298439 commit 0aa80bd

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

‎format-clock-edge-cases/timeConverter.js‎

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
1-
// This code only work when there is only hours not whenn there is minutes.
2-
// function formatAs12HourClock(time) {
3-
// const hours = Number(time.slice(0, 2));
4-
5-
// if (time === "00:00") {
6-
// return `12:00 am`;
7-
// }
8-
9-
// if (hours > 12) {
10-
// return `${hours - 12}:00 pm`;
11-
// }
12-
// return `${time} am`;
13-
// }
14-
15-
// export { formatAs12HourClock };
16-
17-
// The code which run all the run cases is.
181
function formatAs12HourClock(time) {
192
const hours = Number(time.slice(0, 2));
203
const minutes = time.slice(-3);

0 commit comments

Comments
 (0)