https://github.com/nulib/edtf_ex
An Extended Date Time Format (EDTF) / ISO 8601-2 parser and English language rendering toolkit for Elixir.
https://github.com/nulib/edtf_ex
date edtf elixir
Last synced: about 1 year ago
JSON representation
An Extended Date Time Format (EDTF) / ISO 8601-2 parser and English language rendering toolkit for Elixir.
- Host: GitHub
- URL: https://github.com/nulib/edtf_ex
- Owner: nulib
- License: mit
- Created: 2024-10-03T23:21:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-07T15:25:13.000Z (over 1 year ago)
- Last Synced: 2025-03-24T11:45:43.248Z (over 1 year ago)
- Topics: date, edtf, elixir
- Language: Elixir
- Homepage:
- Size: 76.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# EDTF
[](https://github.com/nulib/edtf_ex/actions/workflows/build.yml)
[](https://coveralls.io/github/nulib/edtf_ex?branch=main)
[](https://hex.pm/packages/edtf)
An Extended Date Time Format (EDTF) / ISO 8601-2 parser and English language rendering
toolkit for Elixir.
## Compatibility
### EDTF / ISO 8601-2
EDTF fully implements [EDTF](http://www.loc.gov/standards/datetime)
levels 0, 1, and 2 as specified by ISO 8601-2
## Installation
Add `edtf` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:edtf, "~> 1.0.0"}
]
end
```
## Usage
See `EDTF.parse/1`, `EDTF.validate/1`, and `EDTF.humanize/1`.
## Notes
- Some human-readable dates containing Level 2 qualifications and years with significant digits,
may produce less specific results than desired.