Project Description
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 functionality: http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Numeric/Time.html#M000660

Allows you to write cleaner DateTime expressions and operation.

For example your code can look like this:

DateTime.Now - 1.Week() - 3.Days() + 14.Minutes();

DateTime.Now + 5.Years();

3.Days().Ago();

2.Days().Since(DateTime.Now);

5.Days().After(new DateTime(2000, 1, 1));

DateTime.Now.NextDay();

DateTime.Now.NextYear();

DateTime.Now.PreviousYear();

DateTime.Now.WeekAfter();

DateTime.Now.Midnight();

DateTime.Now.Noon();

DateTime.Now.SetTime(11, 55, 0);

etc.

(See Unit Tests in the project for more details).

If you want to contribute to the project contact user http://www.codeplex.com/site/users/view/spavkov over CodePlex
Last edited Today at 11:34 AM by spavkov, version 10

 

Want to leave feedback?
Please use Discussions or Reviews instead.

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Version 2009.6.1.15196