HoursFromNow

edit

HoursFromNow

Namespace

Summary== Loads the text from the specified file as a string ==Example==DateTime then=3.HoursFromNow(); ==Unit Test

public void HoursFromNowShoudReturnDateTimeAddHours3For3() { var today = DateTime.Now; var then = 3.HoursFromNow(); Assert.Equal(then, DateTime.Now.AddHours(3)); }

Comments

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