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 1 month ago
JSON representation
datetime handling for gleam
- Host: GitHub
- URL: https://github.com/massivefermion/birl
- Owner: massivefermion
- License: apache-2.0
- Created: 2022-12-22T17:23:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-18T17:44:43.000Z (5 months ago)
- Last Synced: 2025-03-30T08:11:50.016Z (about 1 month ago)
- Topics: date, datetime, duration, erlang, gleam, javascript, monotonic, time
- Language: Gleam
- Homepage: https://hex.pm/packages/birl
- Size: 5.21 MB
- Stars: 79
- Watchers: 2
- Forks: 12
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-gleam - birl - [📚](https://hexdocs.pm/birl/) - Date / Time handling for Gleam (Packages / Time)
README

[](https://hex.pm/packages/birl)
[](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/durationpub fn main() {
let now = birl.now()
let two_weeks_later = birl.add(now, duration.weeks(2))
birl.to_iso8601(two_weeks_later)
}
```