Added static Instance method allow the creation of a particular date.
static DateTime Instance(int year, int month, int day, optional int hour, optional int minute, optional int second, optional int millisecond)
E.g.
@@DateTime.Instance(2005, 1, 9)@@
Added static DaysInMonth method to return the number of days for the specified month in the specified year.
static int DaysInMonth(int year, int month)
E.g.
@@DateTime.DaysInMonth(2005, 1)@@
Added static WeeksInMonth method to return the number of weeks (including incomplete weeks) for the specified month in the specified year using using a calendar that starts on the specified day of the week.
WeeksInMonth(int year, int month, int
E.g.
@@DateTime.WeeksInMonth(2005, 1, 1)@@
Added static Instance method allow the creation of a particular timespan.
static TimeSpan Instance(optional int days, optional int hours, optional int minutes, optional int seconds, optional int milliseconds)
E.g.
@@TimeSpan.Instance(7)@@