Handbook
Glossary
days-in-month ( timestamp -- n )
Calendar
ยป
Calendar facts
Prev:
seconds-per-year ( -- value )
Next:
day-of-year ( timestamp -- n )
Vocabulary
calendar
Inputs
timestamp
a
timestamp
Outputs
n
an
integer
Word description
Calculates the number of days in a given month.
Examples
USING: calendar prettyprint ; 2008 8 24 <date> days-in-month .
31
Definition
USING:
kernel
;
IN:
calendar
:
days-in-month
( timestamp -- n )
>date<
drop
(days-in-month)
;