A set of (Ruby inspired) C# Extension Methods for easier and more natural DateTime handling and operations in .NET.
Partialy inspired by
Ruby DateTime operations and functionalityAllows you to write cleaner DateTime expressions and operation. For example your code can look like this:
DateTime.Now - 1.Weeks() - 3.Days() + 14.Minutes();
DateTime.Now + 5.Years();
3.Days().Ago();
2.Days().Since(DateTime.Now);
DateTime.Now.NextDay();
DateTime.Now.NextYear();
DateTime.Now.PreviousYear();
DateTime.Now.WeekAfter();
DateTime.Now.Midnight();
DateTime.Now.Noon();
DateTime.Now.SetTime(11, 55, 0);
(See Unit Tests in the project for more details).
Downloading
The latest build will be at this
CodeBetter linkNot that these builds, while passing all tests, may not be as stable as those taken from the Downloads page. They will however have all the latest bug fixes and features.
Contributing
If you want to contribute to the project contact user
spavkov over CodePlex