Open source Very Long Baseline Interferometry
OpenVLBI
Functions

Functions

DLL_EXPORT timespec_t vlbi_time_mktimespec (int year, int month, int dom, int hour, int minute, int second, long nanosecond)
 Obtain a timespec struct containing the date and time specified. More...
 
DLL_EXPORT double vlbi_time_timespec_to_J2000time (timespec_t tp)
 Convert a timespec into J2000 time. More...
 
DLL_EXPORT double vlbi_time_J2000time_to_lst (double secs_since_J2000, double Long)
 Obtain the local sidereal time at an arbitrary moment and location. More...
 
DLL_EXPORT timespec_t vlbi_time_string_to_timespec (const char *time)
 Obtain a timespec struct containing the date and time specified by a time string. More...
 
DLL_EXPORT timespec_t vlbi_time_J2000time_to_timespec (double secs_since_J2000)
 Obtain a timespec struct containing the date and time specified by a J2000 time. More...
 

Detailed Description

Function Documentation

◆ vlbi_time_J2000time_to_lst()

DLL_EXPORT double vlbi_time_J2000time_to_lst ( double  secs_since_J2000,
double  Long 
)
Parameters
secs_since_J2000seconds since J2000.
Longthe longitude.

◆ vlbi_time_J2000time_to_timespec()

DLL_EXPORT timespec_t vlbi_time_J2000time_to_timespec ( double  secs_since_J2000)
Parameters
secs_since_J2000seconds since J2000.
Returns
the timespec struct containing the date and time specified.

◆ vlbi_time_mktimespec()

DLL_EXPORT timespec_t vlbi_time_mktimespec ( int  year,
int  month,
int  dom,
int  hour,
int  minute,
int  second,
long  nanosecond 
)
Parameters
yearthe year.
monththe month.
domthe day of the month.
hourthe hour.
minuteminutes.
secondseconds.
nanosecondnanoseconds.
Returns
the timespec struct containing the date and time specified.

◆ vlbi_time_string_to_timespec()

DLL_EXPORT timespec_t vlbi_time_string_to_timespec ( const char *  time)
Parameters
timeString containing the time to be converted
Returns
the timespec struct containing the date and time specified.

◆ vlbi_time_timespec_to_J2000time()

DLL_EXPORT double vlbi_time_timespec_to_J2000time ( timespec_t  tp)
Parameters
tpthe timespec containing date and time informations.
Returns
seconds since J2000.