HOPS
HOPS class reference
Macros | Functions
other.c File Reference
#include <string.h>
#include <stdio.h>
#include <math.h>
#include "other.h"

Macros

#define AD   678576
 

Functions

void fix_dhms (int dorh, int *dorhp, int *minsp, double *secsp)
 
int mjd2date (long mjd, int *pYear, int *pMonth, int *pDay)
 
int mjd2dayno (long mjd, int *pDayNo)
 
char * mjd2str (long mjd, char *pstring)
 
int rad2dms (double r, char *pstring)
 
int rad2hms (double r, char *pstring)
 

Macro Definition Documentation

◆ AD

#define AD   678576

Function Documentation

◆ fix_dhms()

void fix_dhms ( int  dorh,
int *  dorhp,
int *  minsp,
double *  secsp 
)

◆ mjd2date()

int mjd2date ( long  mjd,
int *  pYear,
int *  pMonth,
int *  pDay 
)

◆ mjd2dayno()

int mjd2dayno ( long  mjd,
int *  pDayNo 
)

◆ mjd2str()

char* mjd2str ( long  mjd,
char *  pstring 
)

◆ rad2dms()

int rad2dms ( double  r,
char *  pstring 
)

◆ rad2hms()

int rad2hms ( double  r,
char *  pstring 
)