Click or drag to resize

CoordinateCelestial_LocalTime Method

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

Namespace:  CoordinateSharp
Assembly:  CoordinateSharp (in CoordinateSharp.dll) Version: 2.12.1.1
Syntax
C#
public Celestial Celestial_LocalTime(
	double hourOffset
)

Parameters

hourOffset
Type: SystemDouble
Offset hours

Return Value

Type: Celestial
Celestial
Examples
In the following example we convert a UTC populated Coordinate.Celestial object and convert it to Local time.
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