Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

TimeInterval Class

Holds an interval’s start and end times. An instance of this class is used when capturing the start and end times of a scheduling horizon, during which a scheduling process runs. It considers scheduled jobs and is also used to represent the start and end times of an appointment slot or window.

Namespace

FSL

TimeInterval Properties

TimeInterval contains the following properties.

start

The start time of the TimeInterval class.

Signature

public Datetime start {get; set;}

Property Value

Type: Datetime

finish

The end time of the TimeInterval class.

Signature

public Datetime finish {get; set;}

Property Value

Type: Datetime

TimeInterval Methods

TimeInterval includes the following method.

toString()

Returns the start and end datetimes as a string.

Signature

public String toString()

Return Value

Type: String