Latest 1.3.0
License MIT
Platforms ios 8.0

Mihael Isaev

MIT License

Swift 4.2


Don’t forget to support the lib by giving a ⭐️

How to install


SwifCron is available through CocoaPods

To install it, simply add the following line in your Podfile:

pod 'SwifCron', '~> 1.3.0'

Swift Package Manager

.package(url: "", from:"1.3.0")

In your target’s dependencies add "SwifCron" e.g. like this:

.target(name: "App", dependencies: ["SwifCron"]),


import SwifCron

do {
    let cron = try SwifCron("* * * * *")

    //for getting next date related to current date
    let nextDate = try

    //for getting next date related to custom date
    let nextDate = try Date())
} catch {


I use CrontabGuru as a reference

So you could parse any expression which consists of digits with * , / and - symbols


Please feel free to contribute!


  • write more tests
  • support literal names of months and days of week in expression
  • support non-standard digits like 7 for Sunday in day of week part of expression

Latest podspec

    "name": "SwifCron",
    "version": "1.3.0",
    "summary": "u23f1 An awesome and simple pure swift cron expressions parser and scheduler",
    "description": "With this lib you will be able to easily parse cron strings and get next launch dates",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "MihaelIsaev": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.3.0"
    "platforms": {
        "ios": "8.0"
    "source_files": "Sources/SwifCron/**/*",
    "swift_version": "4.2"

Pin It on Pinterest

Share This