PtcRunner.Lisp.Java.Time.LocalDate (PtcRunner v0.14.0)

Copy Markdown View Source

Native, bounded representation of java.time.LocalDate.

The payload is Java's epoch-day identity. It covers the complete Java LocalDate range without depending on the host calendar's year limits.

Summary

Types

t()

@type t() :: %PtcRunner.Lisp.Java.Time.LocalDate{epoch_day: integer()}

Functions

after?(list)

@spec after?([t()]) :: {:ok, boolean()}

before?(list)

@spec before?([t()]) :: {:ok, boolean()}

canonical(local_date)

@spec canonical(t()) :: String.t()

minus_days(list)

@spec minus_days([t() | integer()]) ::
  {:ok, t()} | {:error, PtcRunner.Lisp.Java.Condition.t()}

new(epoch_day)

@spec new(integer()) :: {:ok, t()} | :error

parse(list)

@spec parse([String.t() | nil]) ::
  {:ok, t()} | {:error, PtcRunner.Lisp.Java.Condition.t()}

plus_days(list)

@spec plus_days([t() | integer()]) ::
  {:ok, t()} | {:error, PtcRunner.Lisp.Java.Condition.t()}

to_epoch_day(list)

@spec to_epoch_day([t()]) :: {:ok, PtcRunner.Lisp.Java.Primitive.t()}

valid?(value)

@spec valid?(term()) :: boolean()