Native, bounded representation of java.time.Duration.
The payload follows Java's normalized signed-seconds plus non-negative nanosecond-adjustment representation.
Summary
Types
@type t() :: %PtcRunner.Lisp.Java.Time.Duration{ nano: non_neg_integer(), seconds: integer() }
Functions
@spec between([PtcRunner.Lisp.Java.Time.Instant.t()]) :: {:ok, t()} | {:error, PtcRunner.Lisp.Java.Condition.t()}
@spec to_days([t()]) :: {:ok, PtcRunner.Lisp.Java.Primitive.t()}
@spec to_millis([t()]) :: {:ok, PtcRunner.Lisp.Java.Primitive.t()} | {:error, PtcRunner.Lisp.Java.Condition.t()}