Add global parameters module.
This commit is contained in:
parent
8564056320
commit
49a638fa76
6 changed files with 74 additions and 22 deletions
10
period.scm
10
period.scm
|
@ -28,7 +28,6 @@
|
|||
(module
|
||||
period
|
||||
(
|
||||
*current-month*
|
||||
sort-period-markers
|
||||
period-markers->periods
|
||||
period->duration
|
||||
|
@ -49,13 +48,8 @@
|
|||
(chicken format)
|
||||
(chicken string)
|
||||
month
|
||||
testing)
|
||||
|
||||
(define *current-month*
|
||||
(make-parameter
|
||||
(let ((d (seconds->local-time (current-seconds))))
|
||||
(list (+ 1900 (vector-ref d 5))
|
||||
(vector-ref d 4)))))
|
||||
testing
|
||||
configuration)
|
||||
|
||||
;; Sorts period markers (be it start or end) chronologically and
|
||||
;; returns the sorted list.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue