Closed marksto closed 7 months ago
Ok, I've figured this out after more carefully reading the relevant README section and playing in REPL for a bit.
(jt/as (jt/local-date-time) :hour-of-day :minute-of-hour :second-of-minute)
=> [18 17 19]
Life is great again.
Hi @frenchy64 and thank you for this classy Java Time wrapper lib!
Alas, it looks like
jt/as
doesn't work (or, probably, my expectations about it are wrong):The same is true for a zoned date-time:
A documentation of the
jt/as
fn is scarce and doesn't give any examples with date-times. However, it states that the first argument is a "temporal entity", which dates-times definitely are.Would be nice to hear your thoughts.