11calendar Module

11.1Overview

The 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.

println(calendar.calendar(2015))

11.2Module Function

calendar.calendar(year:number, weekoffset:number => 0, ncols:number => 3)
Prints calendars of a specified year. The argument weekoffset specifies from which week the calendar starts, 0 from Sunday, 1 from Monday, and so on. The argument ncols specifies how many months are printed in one row.