CoordinateCelestial_LocalTime Method

Returns a new Celestial object in local time, based on the Coordinate objects values.

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
public Celestial Celestial_LocalTime(
	double hourOffset
)

Parameters

hourOffset  Double
Offset hours

Return Value

Celestial
Celestial

Example

In the following example we convert a UTC populated Coordinate.Celestial object and convert it to Local time.
C#
Coordinate coord = new Coordinate(32,72, DateTime.Now);
//Convert to Pacific Standard Time (PST) -7 UTC and return new
//Celestial object that contains values in PST.
Celestial cel = coord.Celestial_LocalTime(-7);

See Also