jwaliszko / ExpressiveAnnotations

Annotation-based conditional validation library.
MIT License
351 stars 123 forks source link

Add support for Years in TimeSpan() #183

Open orestesgaolin opened 6 years ago

orestesgaolin commented 6 years ago

Would it be possible to add support for years in TimeSpan() function? Year duration is not always the same in days. Also, sometimes it is required to check whether some time period is an integer multiple of years.

Suggested usage:

TimeSpan TimeSpan(int years, int days, int hours, int minutes, int seconds)
jwaliszko commented 6 years ago

Because I prefer to maintain very simplistic API, I'd rather suggest to use multiplication instead.