gleamunison/datetime

Types

pub opaque type DateTime
pub type DateTimeError {
  ParseError(reason: String)
}

Constructors

  • ParseError(reason: String)

Values

pub fn add_seconds(dt: DateTime, n: Int) -> DateTime
pub fn diff_seconds(a: DateTime, b: DateTime) -> Int
pub fn from_iso8601(
  iso: String,
) -> Result(DateTime, DateTimeError)
pub fn now() -> DateTime
pub fn now_iso8601() -> String
pub fn to_iso8601(dt: DateTime) -> String
Search Document