AstronomyObservationLocalDate Method

Gets midnight of the date in dateTime, with the UTC offset of TimeZone on that date.

Definition

Namespace: InnerDrive.Geography
Assembly: InnerDrive.Geography (in InnerDrive.Geography.dll) Version: 5.3.9666.0
C#
protected DateTimeOffset LocalDate(
	DateTimeOffset dateTime
)

Parameters

dateTime  DateTimeOffset
The date and time provided to the method

Return Value

DateTimeOffset
Midnight of the date in dateTime, with the UTC offset that TimeZone observes on that date.

Remarks

Noon is used internally to determine the UTC offset, which avoids ambiguity at DST boundaries where the offset at midnight can differ from the offset during the rest of the day.

See Also