Skip to content

deviant-forks/birl

 
 

Repository files navigation

birl

Package Version Hex Docs

birl

Date/Time handling for gleam

Quick start

gleam run   # Run the project
gleam test  # Run the tests
gleam shell # Run an Erlang shell

Installation

This package can be added to your Gleam project:

gleam add birl

and its documentation can be found at https://hexdocs.pm/birl.

Usage

import birl
import birl/duration

pub fn main() {
    let now = birl.now()
    let two_weeks_later = birl.add(now, duration.weeks(2))
    birl.to_iso8601(two_weeks_later)
}

Releases

No releases published

Packages

No packages published

Languages

  • Gleam 77.3%
  • Erlang 16.9%
  • Rust 4.3%
  • JavaScript 1.4%
  • Shell 0.1%