public static ConstructorValueProcessStartTimeProvider NewFromOffset(TimeSpan offset) { var offsetNow = DateTime.Now + offset; var constructorValueProcessStartTimeProvider = ConstructorValueProcessStartTimeProvider.NewFromLocal(offsetNow); return(constructorValueProcessStartTimeProvider); }
/// <summary> /// Uses the <see cref="ConstructorValueProcessStartTimeProvider.NewFromLocal(DateTime)"/> as the default. /// </summary> public static ConstructorValueProcessStartTimeProvider New(DateTime localTime) { var constructorValueProcessStartTimeProvider = ConstructorValueProcessStartTimeProvider.NewFromLocal(localTime); return(constructorValueProcessStartTimeProvider); }