public static ConstructorValueNowProvider NewFromOffset(TimeSpan offset) { var offsetNow = DateTime.Now + offset; var constantValueNowProvider = ConstructorValueNowProvider.NewFromNowLocal(offsetNow); return(constantValueNowProvider); }
/// <summary> /// Uses the <see cref="ConstructorValueNowProvider.NewFromNowLocal(DateTime)"/> as the default. /// </summary> public static ConstructorValueNowProvider New(DateTime now) { var constantValueNowProvider = ConstructorValueNowProvider.NewFromNowLocal(now); return(constantValueNowProvider); }