Add global parameters module.

This commit is contained in:
Dominik Pantůček 2023-03-20 13:53:10 +01:00
parent 8564056320
commit 49a638fa76
6 changed files with 74 additions and 22 deletions

View file

@ -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.