public static ConstructorValueProcessStartTimeUtcProvider NewFromLocal(DateTime localTime) { var utcTime = localTime.ToUniversalTime(); var constructorValueProcessStartTimeUtcProvider = ConstructorValueProcessStartTimeUtcProvider.NewFromUtc(utcTime); return(constructorValueProcessStartTimeUtcProvider); }
public static ConstructorValueProcessStartTimeUtcProvider NewFromOffset(TimeSpan offset) { var offsetNowUtc = DateTime.UtcNow + offset; var constructorValueProcessStartTimeUtcProvider = ConstructorValueProcessStartTimeUtcProvider.NewFromUtc(offsetNowUtc); return(constructorValueProcessStartTimeUtcProvider); }
/// <summary> /// Uses the <see cref="ConstructorValueProcessStartTimeUtcProvider.NewFromUtc(DateTime)"/> as the default. /// </summary> public static ConstructorValueProcessStartTimeUtcProvider New(DateTime utcTime) { var constructorValueProcessStartTimeUtcProvider = ConstructorValueProcessStartTimeUtcProvider.NewFromUtc(utcTime); return(constructorValueProcessStartTimeUtcProvider); }