I have some files that using different date types:
some only have year "2020", others have month "2020-12", and still, some have date:"2020-12-21"
So I want to use interval. Like this:
(define-table test-date () ((date :col-type :interval :initarg :date :accessor date))) (create-dao 'test-date :date "2020 years") (date (find-dao 'test-date))=>((:MONTHS 24240) (:DAYS 0) (:SECONDS 0) (:USECONDS 0)) Q1. Is this is how interval supposed to use?
Q2. How to get year?
https://stackoverflow.com/questions/66729939/mito-how-to-save-multiple-date-time-types March 21, 2021 at 03:45PM
没有评论:
发表评论