birl/time
Types
Functions
pub fn change_offset(value: Time, new_offset: String) -> Result(
Time,
Nil,
)
pub fn difference(a: Time, b: Time) -> Duration
pub fn from_iso8601(value: String) -> Result(Time, Nil)
pub fn from_parts(date: #(Int, Int, Int), time: #(
Int,
Int,
Int,
Int,
), offset offset: String) -> Result(Time, Nil)
pub fn now_with_offset(offset: String) -> Result(Time, Nil)
use this the get the current time with a given offset.
Some examples of acceptable offsets:
"+330", "03:30", "-8:00","-7", "-0400", "03"
pub fn to_iso8601(value: Time) -> String