Timeline for ASCII clock with dot & comma time markers
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 13, 2017 at 12:39 | history | edited | Community Bot |
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
|
|
| Mar 2, 2017 at 14:45 | history | edited | Bjorn Molenmaker | CC BY-SA 3.0 |
reworked answer using AdmBorkBork's suggestion
|
| Mar 2, 2017 at 14:01 | comment | added | AdmBorkBork |
You can save by using a pseudo-ternary for the first one, moving the $m and $h declarations into it, and then using Boolean multiplication. Like so -- param($n)';'*(($m=$n%60),($h=$n/60))[($b=$m-gt$h)]+'°'*(($h-$m)*!$b)+','*(($m-$h)*$b)
|
|
| Mar 2, 2017 at 10:30 | history | answered | Bjorn Molenmaker | CC BY-SA 3.0 |