Tempo.FloatingTempoError exception (Tempo v0.3.0)

Copy Markdown View Source

Exception raised when an operation requires zone or offset information but the supplied Tempo value is floating — no [IANA/Zone] tag, no Z, no numeric offset.

Floating values are deliberate (see the scheduling guide) but cannot be projected to UTC, so any operation that needs a universal instant rejects them.

Summary

Types

t()

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