Class WorkflowRuntimeTimeExtensions
OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeTimeExtensions
Provides extension methods for converting dates and times to runtime time.
Namespace: OptimaJet.Workflow.Core.Runtime
public static class WorkflowRuntimeTimeExtensionsMethods
public static DateTime? ToRuntimeTime(this WorkflowRuntime runtime, DateTime? dateTime) #Converts the specified date and time value to runtime time using the runtime's conversion setting.
public static DateTime ToRuntimeTime(this WorkflowRuntime runtime, DateTime dateTime) #Converts the specified date and time value to runtime time using WorkflowRuntimeSettings.UseUtcDateTimeAsRuntimeTime.
Parameters
Name
Type
Description
runtimeWorkflowRuntimeThe runtime whose settings define the target time mode.
dateTimeDateTimeThe value to convert.
Returns
Type
Description
DateTimeThe converted date and time value.