6.2.901.900
17 Calendar Query Functions
procedure
(leap-year? y) → boolean?
y : exact-integer?
Returns #t if y is a leap year,
#f otherwise.
Examples: | ||||||
|
procedure
(days-in-year y) → (or/c 365 366)
y : exact-integer?
Returns the number of days in year y.
Equivalent to: (if (leap-year? y) 366 365)
Examples: | ||||||
|
procedure
(days-in-month y m) → (integer-in 28 31)
y : exact-integer? m : (integer-in 1 12)
Returns the number of days in month m in year
y.
Examples: | ||||||
|
procedure
(iso-weeks-in-year y) → (or/c 52 53)
y : exact-integer?
Returns the number of weeks in year y, according
to the
ISO
8601 week-numbering year.
Examples: | ||||
|