Bolt.Sips v2.0.5 Bolt.Sips.TypesHelper View Source

Link to this section Summary

Functions

Convert NaiveDateTime and timezone into a Calendar.DateTime Without losing micorsecond data!

Decompose an amount seconds into the tuple {hours, minutes, seconds}

Convert an amount of seconds in a +hours:minutes offset

Link to this section Functions

Link to this function

datetime_with_micro(naive_dt, timezone)

View Source
datetime_with_micro(Calendar.naive_datetime(), String.t()) ::
  Calendar.datetime()

Convert NaiveDateTime and timezone into a Calendar.DateTime Without losing micorsecond data!

Link to this function

decompose_in_hms(seconds)

View Source
decompose_in_hms(integer()) :: {integer(), integer(), integer()}

Decompose an amount seconds into the tuple {hours, minutes, seconds}

Link to this function

formated_time_offset(offset_seconds)

View Source
formated_time_offset(integer()) :: String.t()

Convert an amount of seconds in a +hours:minutes offset