Handbook
Glossary
month-name ( obj -- string )
Calendar
ยป
Month names in English
Next:
month-names ( -- value )
Vocabulary
calendar
.
english
Inputs
obj
an
integer
or a
timestamp
Outputs
string
a
string
Word description
Looks up the month name and returns it as a string. January has an index of 1 instead of zero.
Definition
IN:
calendar.english
GENERIC:
month-name
( obj -- string )
Methods
USING:
calendar.english
math
sequences
;
M:
integer
month-name
check-month
1
-
month-names
nth
;
USING:
accessors
calendar
calendar.english
math
sequences
;
M:
timestamp
month-name
month>>
1
-
month-names
nth
;