calendar module provides a function to generate a string of calendar for the specified year.
Below is an example to print a calendar for the year 2015.
calendar.calendar(year:number, weekoffset:number => 0, ncols:number => 3)
weekoffsetspecifies from which week the calendar starts,
1from Monday, and so on. The argument
ncolsspecifies how many months are printed in one row.