Skip to content

Instantly share code, notes, and snippets.

@chochos
chochos / calendar.ceylon
Last active August 29, 2015 14:20
Calendar in Ceylon, similar to *nix `cal`
import ceylon.time {
today, date
}
import ceylon.time.base {
monthOf, Month, sunday, saturday
}
shared void run() {
value hoy = today();
value quarters = [ for (m in (1..12).partition(3)) m.collect(monthOf) ];