View Source Mobilizon.Service.TimezoneDetector (Mobilizon v5.0.0-beta.1)

Detect the timezone from a point

Summary

Functions

Detect the most appropriate timezone from a value, a geographic set of coordinates and a fallback

Types

@type detectable() :: Geo.Point.t() | Geo.PointZ.t() | {float() | float()}

Functions

Link to this function

detect(timezone, fallback)

View Source
@spec detect(String.t() | nil, String.t()) :: String.t()
Link to this function

detect(tz, geo, fallback)

View Source
@spec detect(String.t() | nil, detectable() | nil, String.t()) :: String.t()

Detect the most appropriate timezone from a value, a geographic set of coordinates and a fallback