This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
1.0.0 1.0.1
Cron parser for Elm
version 1.0.0
license BSD3
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 1.0.2
Committed At 2017-06-12 08:10:29 UTC
elm-lang/lazy 2.0.0 <= v < 3.0.0 2.0.0
elm-lang/core 5.0.0 <= v < 6.0.0 5.1.1
Bogdanp/elm-combine 3.1.1 <= v < 4.0.0 3.1.1

README

elm-cron

Build Status

The purpose of this library is to provide a tool for parsing standard five-field Crontabs. Upon success, a CronSchedule is generated. This structure can be further processed to turn it either into a record containing descriptions of inidividual fields or a single string describing the whole Crontab:

        
Maybe.map describeSchedule <| decodeCronTab "12-27/3 * * JAN MON-FRI" =
        Just {
        minuteDescription = "every 3 minute between 12 and 27"
      , hourDescription = "every hour"
      , dayDescription = "every day"
      , monthDescription = "at month 1"
      , dayOfWeekDescription = "every day of the week between 1 and 5" }        
      
Maybe.map scheduleDescription <| decodeCronTab "12-27/3 * * JAN MON-FRI" =
        Just "every 3 minute between 12 and 27; every hour; every day; at month 1; every day of the week between 1 and 5"