datetime handling for gleam
Gleam 78.3%
Erlang 16.2%
Rust 4.1%
JavaScript 1.3%
Shell 0.1%
132 1 0

Clone this repository

https://tangled.org/keii.dev/birl
git@tangled.org:keii.dev/birl

For self-hosted knots, clone URLs may differ based on your setup.

README.md

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)
}