Convert hours, minutes, seconds to radians.

Namespace: ASCOM.Astrometry.SOFA
Assembly: ASCOM.Astrometry (in ASCOM.Astrometry.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

C#
public int Tf2a(
	string s,
	int ihour,
	int imin,
	double sec,
	ref double rad
)
Visual Basic
Public Function Tf2a ( _
	s As String, _
	ihour As Integer, _
	imin As Integer, _
	sec As Double, _
	ByRef rad As Double _
) As Integer
Visual C++
public:
virtual int Tf2a(
	String^ s, 
	int ihour, 
	int imin, 
	double sec, 
	double% rad
) sealed

Parameters

s
Type: System..::..String
sign: '-' = negative, otherwise positive
ihour
Type: System..::..Int32
Hours
imin
Type: System..::..Int32
Minutes
sec
Type: System..::..Double
Seconds
rad
Type: System..::..Double%
Angle in radians

Return Value

Status: 0 = OK, 1 = ihour outside range 0-23, 2 = imin outside range 0-59, 3 = sec outside range 0-59.999...

Remarks

Notes:
  1. The result is computed even if any of the range checks fail.
  2. Negative ihour, imin and/or sec produce a warning status, but the absolute value is used in the conversion.
  3. If there are multiple errors, the status value reflects only the first, the smallest taking precedence.

See Also