Timeline for Output: Calendar Month (without native calendar generating functions)
Current License: CC BY-SA 3.0
13 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 17, 2020 at 9:04 | history | edited | Community Bot |
Commonmark migration
|
|
| Dec 15, 2013 at 22:45 | history | edited | user8777 | CC BY-SA 3.0 |
added 3 characters in body
|
| Dec 15, 2013 at 22:44 | comment | added | user8777 | @user113215 Good catch, that was output from an earlier version that wasn't working. The code in the answer does give the correct calendar (except for September 1752). | |
| Dec 15, 2013 at 21:55 | comment | added | quietmint | But the output is wrong? October 1982 still had 31 days. | |
| Dec 12, 2013 at 23:54 | comment | added | Eliseo D'Annunzio | The Wiki reference you mentioned was interesting... "It reformed the calendar of England and British Dominions so that a new year began on 1 January rather than 25 March (Lady Day) and would run according to the Gregorian calendar, as used in most of western Europe." I'm surprised the English were a little behind then...? | |
| Dec 10, 2013 at 7:15 | comment | added | Eliseo D'Annunzio | @JanDvorak I played with Python a few years ago in a job I was working in... I found the indent syntax a little bit of a pain... So used to curly brackets I guess... LOVE the "\n"*((s+w)%7<1) trick... I've never checked to see if this would work in JavaScript... ;) | |
| Dec 10, 2013 at 7:12 | vote | accept | Eliseo D'Annunzio | ||
| Dec 9, 2013 at 20:42 | comment | added | John Dvorak |
It's a looping construct. n.times{...} is identical to (0...n).each{...} or 0.upto(n-1){...}. Multiplication would be 52 * ...
|
|
| Dec 9, 2013 at 20:33 | comment | added | user8777 |
@JanDvorak Oh no. Not at all. I couldn't even understand yours. To be honest, given the verbose imports I needed, I was shocked it was going to come close to beating yours. Just out of curiousity what is 52.times doing? Its not multiplication?
|
|
| Dec 9, 2013 at 14:37 | comment | added | John Dvorak | let me guess: you have just translated my approach to another language and it came up shorter. I'm okay with that, but disclosure would be nice. | |
| Dec 9, 2013 at 8:14 | history | edited | user8777 | CC BY-SA 3.0 |
added 72 characters in body
|
| Dec 9, 2013 at 8:07 | history | edited | user8777 | CC BY-SA 3.0 |
added 72 characters in body
|
| Dec 9, 2013 at 7:39 | history | answered | user8777 | CC BY-SA 3.0 |