Timeline for It's time for a clock challenge!
Current License: CC BY-SA 3.0
25 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 17, 2020 at 9:04 | history | edited | CommunityBot | Commonmark migration | |
| Jan 19, 2017 at 8:06 | history | edited | pLumo | CC BY-SA 3.0 | deleted 1 character in body |
| Jan 19, 2017 at 8:06 | comment | added | pLumo | If I put sleep in the condition, which saves me 2 bytes, I would need to wait 9 seconds for the clock to appear ... $((60-m)) saves me 1 byte though. Thanks ! | |
| Jan 19, 2017 at 6:35 | comment | added | pLumo | I need the -M because $((60-08)) gives an error. | |
| Jan 19, 2017 at 6:34 | comment | added | pLumo | Whats wrong with 24? | |
| Jan 19, 2017 at 0:52 | comment | added | Evan Krall | I'm not sure whether your math on line 9 is accurate: h=23; echo $((10#$h+1)) prints 24 for me. | |
| Jan 19, 2017 at 0:52 | comment | added | Evan Krall | Some optimizations: move sleep 9 to the condition of the while loop; remove the - in front of M in the format string on line 4. You also don't need to use $ in front of variable names in arithmetic expressions, so $((60-$m)) can be $((60-m)) | |
| Jan 18, 2017 at 9:22 | history | edited | pLumo | CC BY-SA 3.0 | added 12 characters in body |
| Jan 18, 2017 at 9:04 | history | edited | pLumo | CC BY-SA 3.0 | deleted 6 characters in body |
| Jan 18, 2017 at 8:49 | history | edited | pLumo | CC BY-SA 3.0 | deleted 2 characters in body |
| Jan 18, 2017 at 8:39 | history | edited | pLumo | CC BY-SA 3.0 | fix bug "value too great for base", 3 bytes more |
| Jan 17, 2017 at 23:11 | history | edited | pLumo | CC BY-SA 3.0 | added 9 characters in body |
| Jan 17, 2017 at 23:04 | history | edited | pLumo | CC BY-SA 3.0 | deleted 14 characters in body |
| Jan 17, 2017 at 22:42 | history | edited | pLumo | CC BY-SA 3.0 | deleted 2 characters in body |
| Jan 17, 2017 at 22:36 | history | edited | pLumo | CC BY-SA 3.0 | Fixing bug when h=24 |
| Jan 17, 2017 at 22:24 | history | edited | pLumo | CC BY-SA 3.0 | added 12 characters in body |
| Jan 17, 2017 at 22:18 | history | edited | pLumo | CC BY-SA 3.0 | Instead of \r and erasing line i use clear |
| Jan 17, 2017 at 21:57 | history | edited | pLumo | CC BY-SA 3.0 | replaced `bc<<<XXX` with $((XXX)) |
| Jan 17, 2017 at 21:52 | history | edited | pLumo | CC BY-SA 3.0 | one byte less |
| Jan 17, 2017 at 21:46 | comment | added | pLumo | I could save another 8 bytes removing the sleep, but I'm not comfortable with an indefinite while loop running on my computer without a sleep ;-) | |
| Jan 17, 2017 at 21:39 | history | edited | pLumo | CC BY-SA 3.0 | saved another 3 bytes |
| Jan 17, 2017 at 21:34 | history | edited | pLumo | CC BY-SA 3.0 | saved another 3 bytes |
| Jan 17, 2017 at 21:29 | review | First posts | |||
| Jan 17, 2017 at 21:31 | |||||
| Jan 17, 2017 at 21:28 | history | edited | Timtech | CC BY-SA 3.0 | updated title to a more common formatting (nice answer!) |
| Jan 17, 2017 at 21:26 | history | answered | pLumo | CC BY-SA 3.0 |