Tempo.NonAnchoredError exception (Tempo v0.5.0)

Copy Markdown View Source

Exception raised when an operation requires a Tempo value anchored to the time line (that is, carrying at least a year component) but the caller supplied a non-anchored value.

Non-anchored values express a time-of-day axis ("every morning at 06:00") without a specific location on the time line. Use Tempo.anchor/2 to compose such a value with a date before attempting operations that require a UTC projection.

Summary

Types

t()

@type t() :: %Tempo.NonAnchoredError{
  __exception__: true,
  operation: atom() | String.t() | nil,
  value: Tempo.t() | nil
}