Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 ...
- Host: GitHub
- URL: https://github.com/lenards/elm-pandemic-date
- Owner: lenards
- License: bsd-3-clause
- Created: 2022-01-14T02:36:17.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-09T03:07:21.000Z (almost 3 years ago)
- Last Synced: 2024-04-11T15:19:57.771Z (9 months ago)
- Language: Elm
- Size: 9.77 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 PandemicDatePandemicDate.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
```