Surgex.DateTime (Surgex v5.0.0) View Source
Utilities for creating date times.
Link to this section Summary
Functions
Create UTC or time-zone date time given a date and seconds (from midnight) offset.
Link to this section Functions
Link to this function
date_and_offset_to_datetime(date, seconds_since_midnight, timezone \\ "Etc/UTC")
View SourceSpecs
date_and_offset_to_datetime(Date.t(), integer(), String.t()) :: {:ok, DateTime.t()} | {:error, term()}
Create UTC or time-zone date time given a date and seconds (from midnight) offset.
Examples
iex> Surgex.DateTime.date_and_offset_to_datetime(~D{2021-10-07}, 5400)