ScheduleWidget.Core
2.1.1
dotnet add package ScheduleWidget.Core --version 2.1.1
NuGet\Install-Package ScheduleWidget.Core -Version 2.1.1
<PackageReference Include="ScheduleWidget.Core" Version="2.1.1" />
paket add ScheduleWidget.Core --version 2.1.1
#r "nuget: ScheduleWidget.Core, 2.1.1"
// Install ScheduleWidget.Core as a Cake Addin #addin nuget:?package=ScheduleWidget.Core&version=2.1.1 // Install ScheduleWidget.Core as a Cake Tool #tool nuget:?package=ScheduleWidget.Core&version=2.1.1
ScheduleWidget
Scheduling engine to create recurring events for calendars
ScheduleWidget is a scheduling engine that creates recurring events for calendars. It is an implementation based on Martin Fowler's white paper Recurring Events for Calendars in which he describes the software design. This is a complete .NET Core 2.0 rewrite of the popular .NET Framework version. Suppose we want to create a schedule that describes the first Monday of every month:
var builder = new ScheduleBuilder();
var schedule = builder
.DuringMonth(WeekInterval.First)
.OnDaysOfWeek(DayInterval.Mon)
.HavingFrequency(FrequencyType.MonthlyByDayInMonth)
.Create();
Once we create a Schedule
we can ask it questions. The Schedule
exposes methods (documented in more detail below)
that return schedule occurrences (concrete DateTime
value objects) over a defined period of time. Suppose DateTime.Today
is 20 December 2030:
var during = new DateRange(DateTime.Today, DateTime.Today.AddMonths(6));
foreach (var date in schedule.Occurrences(during))
{
Debug.WriteLine(date.ToShortDateString());
}
Output CultureInfo("en-US"):
1/6/2031
2/3/2031
3/3/2031
4/7/2031
5/5/2031
6/2/2031
That's all there is to it. Visit the Project Portal for download instructions, detailed documentation, and code samples.
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.1 is compatible. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
-
.NETCoreApp 2.1
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.