Skip to content

Instantly share code, notes, and snippets.

@kamatari
Created March 3, 2015 06:04
Show Gist options
  • Save kamatari/80182d85110ad86c3d80 to your computer and use it in GitHub Desktop.
Save kamatari/80182d85110ad86c3d80 to your computer and use it in GitHub Desktop.
$ python []
Python 2.7.8 (default, Aug 24 2014, 21:25:57)
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import calendar
>>> print calendar.month(2015, 3)
March 2015
Mo Tu We Th Fr Sa Su
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
@kamatari
Copy link
Author

[local :~]$ python3                                                                                                                                                                            []
Python 3.4.1 (default, Aug 24 2014, 21:31:55)
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import calendar
>>> print (calendar.month(2015, 3))
     March 2015
Mo Tu We Th Fr Sa Su
                   1
 2  3  4  5  6  7  8
 9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment