Fork me on GitHub
#juxt
<
2020-03-21
>
dcj00:03:37

Just began looking at tick, how does one specify an Interval that has some beginning time, but hasn't ended yet?

(t/new-interval
  (t/instant "2018-12-31T23:55:00Z")
  what-to-put-here?)

dcj01:03:21

Are tick interval bounds (beginning, end) inclusive or exclusive?

dominicm10:03:03

I'm not sure java has a representation for infinity. There is a MAX instant you could use

dcj15:03:50

By "MAX instant", do you mean something like this?

(t/instant Long/MAX_VALUE)

dominicm15:03:21

I'm thinking of java.time.Instant/MAX_VALUE

dcj15:03:40

OK, thanks

dcj16:03:16

java.time.Instant/MAX

dcj16:03:25

must be it...

dcj16:03:30

IMHO, the following is awesome/inspired:

Intervals are maps containing both a tick/beginning and a tick/end entry. This flexible design allows any Clojure map to be treated as an interval.

dcj21:03:35

FWIW, when creating tick intervals for dates, java.time.LocalDate/MIN and MAX seem like the way to go... Instant/MAX can't convert to a actual date....