Work on calendar formatting.
This commit is contained in:
parent
2a6b364b4a
commit
3e9b421f60
3 changed files with 45 additions and 1 deletions
|
@ -29,6 +29,8 @@
|
|||
month
|
||||
(
|
||||
make-month
|
||||
month-year
|
||||
month-month
|
||||
month-valid?
|
||||
string->month
|
||||
month->string
|
||||
|
@ -52,6 +54,10 @@
|
|||
(define (make-month y m)
|
||||
(list y m))
|
||||
|
||||
;; Accessors
|
||||
(define month-year car)
|
||||
(define month-month cadr)
|
||||
|
||||
;; Returns true if this is a valid month representation - a list with
|
||||
;; two integer elements within the allowed range.
|
||||
(define (month-valid? m)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue