Assembly: OptimaJet.Workflow.Core

Class WorkflowRuntimeTimeExtensions

OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeTimeExtensions

Provides extension methods for converting dates and times to runtime time.

public static class WorkflowRuntimeTimeExtensions

Methods

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.

Parameters

Name
Type
Description
runtime
WorkflowRuntime
The runtime used to apply conversion settings.
dateTime
Nullable<DateTime>
The value to convert. If null, result is null.

Returns

Type
Description
Nullable<DateTime>
The converted value or null.
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
runtime
WorkflowRuntime
The runtime whose settings define the target time mode.
dateTime
DateTime
The value to convert.

Returns

Type
Description
DateTime
The converted date and time value.