Operators lack support of utc offset logic
Closed this issue · 0 comments
KGOH commented
While there is chrono.tz with timezone support, it is useful to have just UTC offset without timezones'. actual daylight saving time etc since timestamps often have bare offsets (like 2020-03-06T13:00:00+3:00). So this needs to be true:
(chrono.ops/eq? {:hour 10 :min 10} {:hour 13 :min 10 :utc 3}) ;; => false
(chrono.ops/eq? {:hour 10 :min 10} {:hour 12 :min 10 :utc 2}) ;; => false
(chrono.ops/eq? {:hour 12 :min 10 :utc 2} {:hour 13 :min 10 :utc 3});; => false
As well as gt, plus and minus operators must support this logic