File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 79
79
(should (equal (floor (ts-unix (ts-now)))
80
80
(string-to-number (format-time-string " %s" )))))
81
81
82
+ (ert-deftest ts-internal ()
83
+ (should (and (consp (ts-internal (ts-now)))
84
+ (not (proper-list-p (ts-internal (ts-now)))))))
85
+
82
86
; ;;;; Adjustors
83
87
84
88
; ;;;;; Non-destructive
Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ slot `year' and alias `y' would create an alias `ts-y')."
222
222
; ; MAYBE: Add tz-offset-minutes
223
223
224
224
(internal
225
- nil :accessor-init (apply #'encode- time ( decode-time (ts-unix struct)) ))
225
+ nil :accessor-init (funcall #'time-convert (ts-unix struct) t ))
226
226
(unix
227
227
nil :accessor-init (pcase-let* (((cl-struct ts second minute hour day month year) struct))
228
228
(if (and second minute hour day month year)
You can’t perform that action at this time.
0 commit comments