Tempo.ZoneGapError exception (Tempo v0.4.1)

Copy Markdown View Source

Exception raised when a wall-clock reading does not exist in the given time zone.

Two causes:

  • DST spring-forward — the local clock jumps (e.g. New York 2024-03-10 02:00 → 03:00, so 02:30 never existed).

  • Calendar jump — an entire calendar day is skipped when a territory changes its UTC offset (e.g. Samoa on 2011-12-30).

Summary

Types

t()

@type t() :: %Tempo.ZoneGapError{
  __exception__: true,
  detail: String.t() | nil,
  reason: :dst_gap | :calendar_jump | atom() | nil,
  wall_time: String.t() | nil,
  zone_id: String.t() | nil
}