solar.c
static int
julian_centuries(double *nowp)
{
	struct timespec now;
	if (clock_gettime(CLOCK_REALTIME_COARSE, &now))
		return -1;
	*nowp = (double)(now.tv_nsec) / 1000000000.0 + (double)(now.tv_sec);
	*nowp = (*nowp / 86400.0 + 2440587.5 - 2451545.0) / 36525.0;
	return 0;
}
/**
 * Get current Julian Centuries time (100 Julian days since J2000)
 * 
 * @param   nowp  Output parameter for the current Julian Centuries time
 * @return        0 on success, -1 on failure
 * @throws        Any error specified for clock_gettime(3) on error
 */
Get current Julian Centuries time (100 Julian days since J2000)

@param   nowp  Output parameter for the current Julian Centuries time
@return        0 on success, -1 on failure
@throws        Any error specified for clock_gettime(3) on error
Get current Julian Centuries time ( 100 Julian days since J2000 ) @param nowp Output parameter for the current Julian Centuries time @return 0 on success - 1 on failure @throws Any error specified for clock_gettime ( 3 ) on error
static int
julian_centuries(double *nowp)
{
	struct timespec now;
	if (clock_gettime(CLOCK_REALTIME_COARSE, &now))
		return -1;
	*nowp = (double)(now.tv_nsec) / 1000000000.0 + (double)(now.tv_sec);
	*nowp = (*nowp / 86400.0 + 2440587.5 - 2451545.0) / 36525.0;
	return 0;
}
static int julian_centuries ( double * nowp ) { struct timespec now ; if ( clock_gettime ( CLOCK_REALTIME_COARSE , & now ) ) return -1 ; * nowp = ( double ) ( now . tv_nsec ) / 1000000000.0 + ( double ) ( now . tv_sec ) ; * nowp = ( * nowp / 86400.0 + 2440587.5 - 2451545.0 ) / 36525.0 ; return 0 ; }
Get current Julian Centuries time (100 Julian days since J2000)
Get current Julian Centuries time ( 100 Julian days since J2000 )