Skip to content

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

License

Notifications You must be signed in to change notification settings

c-mart/elm-pandemic-date

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elm-pandemic-date

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

Background

Inspired by a tweet from Andrea Goulet.

Usage

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

PandemicDate.toPandemicDate (Date.fromCalendarDate 2022 Jan 13)

REPL Example

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Elm 100.0%