Piston.ZoneInfoHelper (zoneinfo v0.1.9)

Copy Markdown View Source

A Zone Info helper

Summary

Functions

Find the periods defining the nearest start and end of DST for a timezone.

Functions

find_dst_periods(timezone)

@spec find_dst_periods(String.t()) ::
  {:ok, dst_start: tuple() | nil, dst_end: tuple()} | {:error, :not_found}

Find the periods defining the nearest start and end of DST for a timezone.

dst_end can be nil if the timezone does not implement DST

time_parameters_info(time_zone)