scriptorium/utils/luxon

Bindings to the Luxon library.

Types

Luxon DateTime.

pub type DateTime

Functions

pub fn date_time_in_zone(
  date: Date,
  time: Time,
  tz: String,
) -> Result(DateTime, Nil)

Get a Luxon DateTime in the given timezone.

pub fn to_iso(dt: DateTime) -> String

Format the DateTime as an ISO 8601 format string.

pub fn utc_now() -> DateTime

Get the current time as UTC.

Search Document