SecondsFromNow

edit

SecondsFromNow

Namespace

Summary== Gets a date in the future by seconds. ==Example==DateTime then=3.SecondsFromNow(); ==Unit Test

public void SecondsFromNowShouldReturnDateTimeAddSeconds3For3() { var today = DateTime.Now; var then = 3.SecondsFromNow(); Assert.Equal(then, DateTime.Now.AddSeconds(3)); }

Comments

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