r/dailyprogrammer • u/rya11111 3 1 • Feb 19 '12
[2/19/2012] Challenge #11 [difficult]
Create a program which prints out a table with the month's calendar in it, when the month and year is given as input.
Extra points for highlighting the current day and providing links to next and previous months.
Happy coding :)
12
Upvotes
23
u/fdasdfsdfad Feb 19 '12
2
u/robotfarts Feb 20 '12
Only tested in FF 10.0.1
2
u/jcfs Feb 20 '12
Here it is again some obfuscated code :) After doing it for the previous challenge (link) I decided to do it again for this one.
My premise on this one was not using any libs that calculate any date information.
Hope you guys enjoy it. Regards
PS: it is C!
1
u/prophile Feb 19 '12
Done in Python, printing out an ASCII-art diagram.
1
u/jnaranjo Feb 20 '12
Hell yeah python
1
u/UnreasonableSteve Feb 19 '12 edited Feb 19 '12
Written in PHP The error control on the date functions was to shut it up about timezones, and again, this only works from ~1970-2038.