Add preliminary current day specification.
This commit is contained in:
parent
f20f815784
commit
ea9336b9bc
1 changed files with 8 additions and 0 deletions
|
@ -77,6 +77,14 @@
|
|||
(make-cal-month (+ 1900 (vector-ref d 5))
|
||||
(+ (vector-ref d 4) 1)))))
|
||||
|
||||
;; Current month - if changed, we get the actual state for given month.
|
||||
(define *current-day*
|
||||
(make-parameter
|
||||
(let ((d (seconds->local-time (current-seconds))))
|
||||
(make-cal-day (+ 1900 (vector-ref d 5))
|
||||
(+ (vector-ref d 4) 1)
|
||||
(vector-ref d 3)))))
|
||||
|
||||
;; Creates a new period value with optional since and before
|
||||
;; comments.
|
||||
(define (make-cal-period since before . args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue