View Source Bolt.Sips.TypesHelper (Boltx v0.0.1)

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

Functions

Link to this function

datetime_with_micro(naive_dt, timezone)

View Source
@spec 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
@spec 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
@spec formated_time_offset(integer()) :: String.t()

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