GlobalSettingsAllow_Coordinate_DateTimeKind_Specification Property

Sets whether Coordinate calculates in UTC (default) or environment's DateTimeKind specification. Allows Coordinate objects to run in local time automatically if set to true.

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 2.21.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
public static bool Allow_Coordinate_DateTimeKind_Specification { get; set; }

Property Value

Boolean

Remarks

If the `Coordinate` object's set `GeoDate` value has a `DateTimeKind` value set as `Local` and `Allow_Coordinate_DateTimeKind_Specification` is set to `true`, then the Coordinate object will initialize and calculate celestial data based on the environment's local time by default. If `DateTimeKind` Specification is allowed, then setting the `Coordinate.Offset` property will throw an `InvalidOperationException` as CoordinateSharp is self-handling offsets. While Allowing `DateTimeKind` specification is convenient, it is not recommended if you require control of timezones or manual adjustments of UTC offsets. Use only if applicable.

See Also