Timeline for We had a question once which only failed on Sundays
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 5, 2018 at 21:28 | history | edited | l4m2 | CC BY-SA 3.0 |
added 71 characters in body
|
Jan 5, 2018 at 20:53 | comment | added | apsillers |
The solution by @RickHitchcock can be made one shorter by template-tag execution on match instead: Date().match`Su`&&k
|
|
Jan 5, 2018 at 16:45 | comment | added | Alnitak | @l4m2 ah, someone ported my C version :) | |
Jan 5, 2018 at 16:37 | comment | added | l4m2 |
new Date version 25 bytes (new Date/864e5%7|0)-3||p
|
|
Jan 5, 2018 at 16:22 | history | edited | l4m2 | CC BY-SA 3.0 |
added 72 characters in body
|
Jan 5, 2018 at 15:58 | comment | added | Rick Hitchcock |
/Su/.test(Date())&&k for 20 bytes.
|
|
Jan 5, 2018 at 15:42 | comment | added | István Pálinkás |
Nice solution. Also 23 Bytes: Date().indexOf("Su")||k
|
|
Jan 5, 2018 at 13:16 | history | edited | user202729 | CC BY-SA 3.0 |
Clarify, why not.
|
Jan 5, 2018 at 13:00 | comment | added | l4m2 | 1) It's a full program, which is allowed by the OP. 2) If you run it as a program, there's no output | |
Jan 5, 2018 at 12:58 | comment | added | Shaggy |
1) You forgot to include the _=> ; without it this is a snippet which are not allowed by default. 2) This outputs false on every other day when it shouldn't output anything.
|
|
Jan 5, 2018 at 12:29 | history | answered | l4m2 | CC BY-SA 3.0 |