aboutsummaryrefslogtreecommitdiff
path: root/module/datetime/timespec.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-02-13 22:12:33 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-02-13 22:12:33 +0100
commitba48718b5bc6d0eb4eef1f8ead91940e1c011206 (patch)
tree9ac399554174d29f03bd91eda57ed62e5948491f /module/datetime/timespec.scm
parentDatetime remove old commented parse-month. (diff)
downloadcalp-ba48718b5bc6d0eb4eef1f8ead91940e1c011206.tar.gz
calp-ba48718b5bc6d0eb4eef1f8ead91940e1c011206.tar.xz
Datetime restrict imports.
We might want to break datetime out into its own (independent) module, but for that we should have a clear understanding of what it uses.
Diffstat (limited to 'module/datetime/timespec.scm')
-rw-r--r--module/datetime/timespec.scm8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/datetime/timespec.scm b/module/datetime/timespec.scm
index 9b236e2d..712ff327 100644
--- a/module/datetime/timespec.scm
+++ b/module/datetime/timespec.scm
@@ -4,8 +4,10 @@
;;; Code:
(define-module (datetime timespec)
- :use-module (hnh util)
- :use-module (hnh util exceptions)
+ :export (make-timespec
+ timespec? timespec-time timespec-sign timespec-type)
+ :use-module ((hnh util) :select (set define*-public unless let*))
+ :use-module ((hnh util exceptions) :select (warning))
:use-module (datetime)
:use-module (srfi srfi-1)
:use-module (srfi srfi-9 gnu)
@@ -26,8 +28,6 @@
;; u, g, z - Universal time
(type timespec-type)) ; char
-(export make-timespec timespec? timespec-time timespec-sign timespec-type)
-
(define-public (timespec-zero)
(make-timespec (time) '+ #\w))