/Dates.Recurring

Library for working with recurring dates in a fluent syntax

Primary LanguageC#GNU Lesser General Public License v3.0LGPL-3.0

n | l | d | c | p

Scott.Dates.Recurring

Library for working with recurring dates in a fluent syntax

Installation

Install from nuget

dotnet add package Scott.Dates.Recurring
Install-Package Scott.Dates.Recurring

Usage

You can see the usage in the tests, simple example

using Scott.Dates.Recurring;

var weekly = RuleBuilder
                .Every(2)
                .Weeks()
                .Starting(new DateTime(2016, 10, 2))
                .Ending(new DateTime(2016, 10, 31))
                .Build();
            Assert.AreEqual(16, weekly.Sequence.Count);

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.