CronBuilder 1.21.3.3116
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package CronBuilder --version 1.21.3.3116
NuGet\Install-Package CronBuilder -Version 1.21.3.3116
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CronBuilder" Version="1.21.3.3116" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CronBuilder --version 1.21.3.3116
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CronBuilder, 1.21.3.3116"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CronBuilder as a Cake Addin #addin nuget:?package=CronBuilder&version=1.21.3.3116 // Install CronBuilder as a Cake Tool #tool nuget:?package=CronBuilder&version=1.21.3.3116
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Cron-Builder
Cron Builder object that can be used to build Cron expressions, describe them, and manipulate objects.
Feature Overview
- Build Cron Expression.
- Create Cron by Expression.
- Display Description of Cron expression or a section.
- Expression Chaining of Cron object and Sections (Seconds, Minutes, Hours, DayMonth, Months, DayWeek).
- Set intervals or specific times on Time Sections (Seconds, Minutes, Hours).
- Set specific date sections (DayMonth, Months, DayWeek).
- Specify allowing seconds (non-standard).
Examples
Create a new CronBuilder Object
schedule = new CronBuilder();
Create Cron object with an existing expression
var cron = new CronBuilder(expression);
Create Initial Cron object with Days
var cron = new CronBuilder
{
{ CronDays.Thursday, CronDays.Saturday }
};
Create Initial Cron object with Months
var cron = new CronBuilder
{
{ CronMonths.August, CronMonths.November }
};
Create Initial Cron object with Months and Day
var cron = new CronBuilder
{
{ CronDays.Thursday, CronMonths.November }
};
Build Cron by Section
Add to Cron with sections
schedule.Add(time: CronTimeSections.Seconds, value: seconds, repeatEvery: true)
schedule.Add(CronTimeSections.Minutes, 4)
schedule.Add(CronTimeSections.Hours, 3, 5)
Add a Month Restriction to the Cron Expression
schedule.Add(CronMonths.March)
Add a Day of the Week Restriction to the Cron Expression
schedule.Add(CronDays.Wednesday)
Chain Cron and Sections.
schedule = new CronBuilder();
schedule
.Add(CronDays.Friday)
.Add(CronTimeSections.DayMonth, dayMonth)
.Seconds.Add(5);
Display Cron Description
var descCron = cron.Description;
var descSeconds = cron.Seconds.Description;
Remove all or parts of a Cron Expression
Remove only one entry of 5 in Seconds
cron.Remove(CronTimeSections.Seconds, 5);
Remove only one entry Range of Seconds
cron.Remove(CronTimeSections.Seconds, 5, 6);
Reset / Remove All of the Day of the Week section
cron.Reset(CronTimeSections.DayWeek);
Reset all sections to the defaults
cron.ResetAll();
Updates
Version 1.21.03.3110
Assume standard Cron, Remove Years Allow Seconds as an option. Remove Strongname.
Version 1.20.11.2216
Minor Cleanup and Fixes / Update packages.
Version 1.1.11.17
Cron Object renamed to CronBuilder to simplify creation due to conflicting namespace.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- System.Text.Json (>= 5.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.21.6.1116 | 36,569 | 6/11/2021 |
1.21.3.3116 | 1,200 | 3/31/2021 |
Assume standard Cron, Remove Years, Allow Seconds as an option.
Remove Signed Assembly.