-
Notifications
You must be signed in to change notification settings - Fork 0
/
jd-time-utils-package.lisp
36 lines (32 loc) · 1.2 KB
/
jd-time-utils-package.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
(defpackage jd-time-utils
(:use #:cl)
(:export
;; date-time object
#:date-time #:date-time-p
#:date-time-year #:date-time-month #:date-time-day
#:date-time-hour #:date-time-minute #:date-time-second
#:date-time-fractional-second #:date-time-day-of-week
#:date-time-ut #:date-time-float-year
#:julian-time #:julian-time-p
#:julian-time-day #:julian-time-second #:julian-time-nanosecond
;; comparisons
#:date-time= #:date-time> #:date-time< #:date-time>= #:date-time<=
;; time-utils-utils.lisp
#:gregorian-date-to-jd
#:gregorian-date-to-jd-seconds
#:universal-time-from-calendar-date
#:get-local-timezone-at-ut
#:get-local-timezone-at-calendar-date
#:jd-to-jd-seconds ;; JD to JD-SECONDS from start of JD epoch
#:jd-to-universal-time ;; JD to UT-SECONDS
#:jd-to-gregorian-date
#:jd-seconds-to-gregorian-date
#:universal-time-to-julian-time
;; the main CL-resembling functions - note that timezone defaults to 0
;; rather than local, and daylight savings is not returned
#:encode-universal-time/extended
#:decode-universal-time/extended
#:build-date-time-struct-from-ut
#:change-date-time-timezone
#:parse-date-time-string
))