IdtTimeZoneGetUtcOffset Method

Returns the coordinated universal time (UTC) offset for the specified local time.

Definition

Namespace: InnerDrive.TimeZones
Assembly: InnerDrive.TimeZones (in InnerDrive.TimeZones.dll) Version: 5.2.9017.0
C#
public TimeSpan GetUtcOffset(
	DateTime time
)

Parameters

time  DateTime
The local date and time.

Return Value

TimeSpan
The UTC offset from time, measured in ticks.

Remarks

The method examines the Kind member of time to determine how to interpret the parameter. If time.DateTimeKind is Utc, the method assumes time is UTC; otherwise, it assumes time is a local time.

See Also