datetime handling for gleam
- Gleam 78.2%
- Erlang 16.3%
- Rust 4.1%
- JavaScript 1.3%
|
|
||
|---|---|---|
| .github/workflows | done some chores | |
| src | done some chores | |
| test | fix unmatched assert on blur of round value | |
| zones-provider | done some chores | |
| .gitignore | added support for timezones | |
| banner.png | some docs changes | |
| gleam.toml | updated deps | |
| icon.png | some docs changes | |
| LICENSE | fixed some bugs, added some functions, added LICENSE | |
| manifest.toml | updated deps | |
| README.md | some docs changes | |
| update-zones.sh | minor change to the shell script | |
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
importbirlimportbirl/durationpubfnmain(){letnow=birl.now()lettwo_weeks_later=birl.add(now,duration.weeks(2))birl.to_iso8601(two_weeks_later)}