Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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 24 hours ago
JSON representation

An Extended Date Time Format (EDTF) / ISO 8601-2 parser and English language rendering toolkit for Elixir.

Awesome Lists containing this project

README

        

# EDTF

[![Build](https://github.com/nulib/edtf_ex/actions/workflows/build.yml/badge.svg)](https://github.com/nulib/edtf_ex/actions/workflows/build.yml)
[![Coverage](https://coveralls.io/repos/github/nulib/edtf_ex/badge.svg?branch=main)](https://coveralls.io/github/nulib/edtf_ex?branch=main)
[![Hex.pm](https://img.shields.io/hexpm/v/edtf.svg)](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.