IdtTimeZoneGetUtcOffset Method
Returns the coordinated universal time (UTC) offset for the specified
local time.
Namespace: InnerDrive.TimeZonesAssembly: InnerDrive.TimeZones (in InnerDrive.TimeZones.dll) Version: 5.2.9017.0
public TimeSpan GetUtcOffset(
DateTime time
)
- time DateTime
- The local date and time.
TimeSpanThe UTC offset from time, measured in ticks.
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.