View Source Plausible.Timezones (Plausible v0.0.1)

Summary

Functions

Link to this function

options(now \\ DateTime.utc_now())

View Source
@spec options(DateTime.t()) :: [key: String.t(), value: String.t(), offset: integer()]
Link to this function

to_date_in_timezone(dt, timezone)

View Source
@spec to_date_in_timezone(Date.t() | NaiveDateTime.t() | DateTime.t(), String.t()) ::
  Date.t()
Link to this function

to_datetime_in_timezone(dt, timezone)

View Source
@spec to_datetime_in_timezone(Date.t() | NaiveDateTime.t() | DateTime.t(), String.t()) ::
  DateTime.t()
Link to this function

to_utc_datetime(naive_date_time, timezone)

View Source
@spec to_utc_datetime(NaiveDateTime.t(), String.t()) :: DateTime.t()