IdtTimeZoneCorrectOffsets Method

Corrects the offsets of a DateRange to ensure that the points of time in the date range are correctly in local time

Definition

Namespace: InnerDrive.TimeZones
Assembly: InnerDrive.TimeZones (in InnerDrive.TimeZones.dll) Version: 5.2.9017.0
C#
public DateRange CorrectOffsets(
	DateRange range
)

Parameters

range  DateRange
The DateRange to correct

Return Value

DateRange
The corrected DateRange

Remarks

This method is intended to work in conjunction with the Today and related named ranges. For example, the value of ThisMonth in America/Chicago on 18 March 2021 will be 2021-03-01 00:00 -05:00 to 2021-04-01 00:00 -05:00. This method would correct that range to 2021-03-01 00:00 -06:00 to 2021-04-01 00:00 -05:00.

See Also