Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/lenards/elm-pandemic-date

When you feel like time stopped and we're still in March 2020 ...
https://github.com/lenards/elm-pandemic-date

Last synced: about 2 months ago
JSON representation

When you feel like time stopped and we're still in March 2020 ...

Awesome Lists containing this project

README

        

# elm-pandemic-date
When you feel like time stopped and we're still in March 2020 ...

## Background

Inspired by [a tweet](https://twitter.com/andreagoulet/status/1481337118312087552) from [Andrea Goulet](https://twitter.com/andreagoulet).

## Usage

```elm
import Time exposing (Month(..))
import Date exposing (Unit(..))
import PandemicDate

PandemicDate.toPandemicDate (Date.fromCalendarDate 2022 Jan 13)
```

## REPL Example

```elm
> elm repl
---- Elm 0.19.1 ----------------------------------------------------------------
Say :help for help and :exit to exit! More at
--------------------------------------------------------------------------------
> import Time exposing (Month(..))
> import Date exposing (Unit(..))
> import PandemicDate
> PandemicDate.toPandemicDate (Date.fromCalendarDate 2022 Jan 13)
"March 683th, 2020" : String
```