TimeZoneHelper.FromClientTime(TimeInterval, String, Boolean) Method

Converts a time interval from the client time zone to the specified time zone.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v20.2.Core.dll

Declaration

public TimeInterval FromClientTime(
    TimeInterval sourceTimeInterval,
    string targetTimeZoneId,
    bool treatAllDayAsFloatInterval
)

Parameters

Name Type Description
sourceTimeInterval TimeInterval

A TimeInterval in the client time zone.

targetTimeZoneId String

A string that specifies the destination time zone. The string must be one of the available System.TimeZoneInfo.Id values.

treatAllDayAsFloatInterval Boolean

true, to treat all-day intervals as floating intervals (i.e., that do not belong to any time zone); otherwise, false.

Returns

Type Description
TimeInterval

The TimeInterval in the specified time zone.

See Also