Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/massivefermion/birl

datetime handling for gleam
https://github.com/massivefermion/birl

date datetime duration erlang gleam javascript monotonic time

Last synced: about 2 months ago
JSON representation

datetime handling for gleam

Awesome Lists containing this project

README

        

![birl](https://raw.githubusercontent.com/massivefermion/birl/main/banner.png)

[![Package Version](https://img.shields.io/hexpm/v/birl)](https://hex.pm/packages/birl)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/birl/)

# birl

Date/Time handling for gleam

## Quick start

```sh
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:

```sh
gleam add birl
```

and its documentation can be found at .

## Usage

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