Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/massivefermion/birl
datetime handling for gleam
https://github.com/massivefermion/birl
date datetime duration erlang gleam javascript monotonic time
Last synced: 17 days 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 (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-12T15:55:44.000Z (about 1 month ago)
- Last Synced: 2024-11-12T16:44:31.170Z (30 days ago)
- Topics: date, datetime, duration, erlang, gleam, javascript, monotonic, time
- Language: Gleam
- Homepage: https://hex.pm/packages/birl
- Size: 5.14 MB
- Stars: 69
- Watchers: 3
- Forks: 9
- Open Issues: 10
-
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
![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/durationpub fn main() {
let now = birl.now()
let two_weeks_later = birl.add(now, duration.weeks(2))
birl.to_iso8601(two_weeks_later)
}
```