MinutesFromNow

edit

MinutesFromNow

Namespace

Summary== Returns a date in the future by minutes ==Example==DateTime then=3.MinutesFromNow(); ==Unit Test

public void MinutesFromNowShouldReturnDateTimeAddMinutesNeg3For_3() { var today = DateTime.Now; var then = 3.MinutesFromNow(); Assert.Equal(then, DateTime.Now.AddMinutes(-3)); }

Comments

SubSonic 3.0 implements this as an extension on System.Int- 2.x uses a static method on SubSonic.Sugar.Dates.