visualon - VisualOn.NCrontab.Advanced 1.3.15-beta.0
Cron string parser for .NET
PM> Install-Package VisualOn.NCrontab.Advanced -Version 1.3.15-beta.0 -Source https://www.myget.org/F/visualon/api/v3/index.json
> nuget.exe install VisualOn.NCrontab.Advanced -Version 1.3.15-beta.0 -Source https://www.myget.org/F/visualon/api/v3/index.json
> dotnet add package VisualOn.NCrontab.Advanced --version 1.3.15-beta.0 --source https://www.myget.org/F/visualon/api/v3/index.json
source https://www.myget.org/F/visualon/api/v3/index.json
nuget VisualOn.NCrontab.Advanced ~> 1.3.15-beta.0
Copy to clipboard
> choco install VisualOn.NCrontab.Advanced --version 1.3.15-beta.0 --source https://www.myget.org/F/visualon/api/v2
Import-Module PowerShellGet
Register-PSRepository -Name "visualon" -SourceLocation "https://www.myget.org/F/visualon/api/v2"
Install-Module -Name "VisualOn.NCrontab.Advanced" -RequiredVersion "1.3.15-beta.0" -Repository "visualon" -AllowPreRelease
Copy to clipboard
NCrontab Advanced
This is a fork from Joe Coutcher.
Cron string parser for .NET
Changes
See GitHub Releases
License
Howto
If you have any problems, make sure to file an issue here on Github.
We were looking to implement NCrontab for a project, but found it had a few shortcomings:
- No support for #, L and W
- Only supported two cron formats: "SECONDS MINUTES HOURS DAYS MONTHS DAYS-OF-WEEK" and one without SECONDS.
So, I started looking into adding these features. After some digging through the code, it became apparent that while the code worked well for the cron strings that it supported, it wouldn't scale well for support of #, L and W. :-(
In comes NCrontab-Advanced - a complete re-write of the parsing engine. Along with the re-write come the following features:
Support for the following cron formats:
CronStringFormat.Default: MINUTES HOURS DAYS MONTHS DAYS-OF-WEEKCronStringFormat.WithYears: MINUTES HOURS DAYS MONTHS DAYS-OF-WEEK YEARSCronStringFormat.WithSeconds: SECONDS MINUTES HOURS DAYS MONTHS DAYS-OF-WEEKCronStringFormat.WithSecondsAndYears: SECONDS MINUTES HOURS DAYS MONTHS DAYS-OF-WEEK YEARS
How to build project:
The project can be opened using Visual Studio 2015, or Visual Studio Code. You can either build using MSBuild against the solution, or using .NET Core's dotnet command:
# Run this from the NCrontab.Advanced folder (which contains NCrontab.Advanced.csproj)
dotnet restore
dotnet build
NOTE - If you're building via dotnet, make sure you either comment out the net35 section in project.json, or install the .NET Framework v3.5 (it's a supported framework by the Nuget package.)
Support for the following cron expressions:
Field name | Allowed values | Allowed special characters
------------------------------------------------------------
Minutes | 0-59 | * , - /
Hours | 0-23 | * , - /
Day of month | 1-31 | * , - / ? L W
Month | 1-12 or JAN-DEC | * , - /
Day of week | 0-6 or SUN-SAT | * , - / ? L #
Year | 0001–9999 | * , - /
Instructions for how cron expressions are formatted are on the Cron Expresssions page on Wikipedia, and documentation for using NCrontab.Advanced is over on the Getting Started wiki!
-
.NETFramework 3.5
-
.NETFramework 4.0
-
.NETFramework 4.5
-
.NETFramework 4.5.1
-
.NETFramework 4.6
-
.NETStandard 1.0
- NETStandard.Library (>= 1.6.0)
- .NETFramework 3.5: 3.5.0.0
- .NETFramework 4.0: 4.0.0.0
- .NETFramework 4.5: 4.5.0.0
- .NETFramework 4.5.1: 4.5.1.0
- .NETFramework 4.6: 4.6.0.0
- .NETStandard 1.0: 1.0.0.0
OwnersMichael Kriese |
AuthorsVisualOn |
Project URLhttps://github.com/VisualOn/NCrontab-Advanced |
LicenseApache-2.0 |
Info10 total downloads |
| 4 downloads for version 1.3.15-beta.0 |
| Download (116.71 KB) |
| Found on the current feed only |
Package history
| Version | Size | Last updated | Downloads | Mirrored? | |||
|---|---|---|---|---|---|---|---|
|
|
2.0.0 | 116.41 KB | Wed, 16 Jan 2019 11:08:51 GMT | 4 |
|
||
|
|
1.3.15-beta.0 | 116.71 KB | Mon, 14 Jan 2019 11:30:33 GMT | 4 |
|
||
|
|
1.2.3.3 | 75.94 KB | Mon, 14 Jan 2019 10:29:18 GMT | 2 |
|