aboutsummaryrefslogtreecommitdiff
path: root/module/datetime
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-05-19 22:20:41 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-05-19 22:20:41 +0200
commit5b5ec937612e63c6d22bac30c37a8e502e645e5f (patch)
tree6feaa558a0cfdb4544ce66110cb5bad9d9abecc9 /module/datetime
parentminor cleanup. (diff)
downloadcalp-5b5ec937612e63c6d22bac30c37a8e502e645e5f.tar.gz
calp-5b5ec937612e63c6d22bac30c37a8e502e645e5f.tar.xz
Remove leap and expiry from zic.
Diffstat (limited to 'module/datetime')
-rw-r--r--module/datetime/zic.scm41
1 files changed, 5 insertions, 36 deletions
diff --git a/module/datetime/zic.scm b/module/datetime/zic.scm
index 02f3230f..1f599ca6 100644
--- a/module/datetime/zic.scm
+++ b/module/datetime/zic.scm
@@ -119,13 +119,6 @@
(name link-name) ; string
(target link-target)) ; string
-(define-immutable-record-type <leap-second> ; "UNUSED"
- (make-leap-second when correction r/s)
- leap-second?
- (when leap-second-when)
- (correction leap-second-correction)
- (r/s leap-second-r/s))
-
(define-immutable-record-type <zoneinfo> ; EXPORTED
(make-zoneinfo rules zones)
zoneinfo?
@@ -329,36 +322,12 @@
(loop (cons (make-link name target)
done) #f))]
- ;; Leap and Exprires mostly ignored
-
- [(Leap)
- (let* (((year month day time correction r/s) args))
- (loop (cons
- (make-leap-second
- (datetime
- date: (date year: (string->number year)
- month: (month-name->number month)
- day: (string->number day))
- time: (parse-iso-time time))
- correction
- (cond
- [(string-prefix? r/s "Stationary") 'stationary]
- [(string-prefix? r/s "Rolling") 'rolling]
- [else (error "Invalid r/s" r/s)]))
- done) #f))]
-
- [(Expires)
- (let* (((year month day time) args))
- ;; TODO class here
- (loop
- (cons (datetime
- date: (date year: (string->number year)
- month: (month-name->number month)
- day: (string->number day))
- time: (parse-iso-time time))
- done) #f))]
[else
- (error "Something")]
+ ;; NOTE an earlier version of the code the parsers for those.
+ ;; They were removed since they were unused, uneeded, and was
+ ;; technical dept.
+ (error "Invalid key ~a. Note that leap seconds and
+expries rules aren't yet implemented." type)]
))]))))))