unsigned short int VN_ConvertDate_to_MJD(unsigned short int ui16Day, unsigned short int ui16Month, unsigned short int ui16Year)
{
if(ui16Month<3)
{
--ui16Year;
ui16Month+=12;
}
ui16Year+=4800;
ui16Month-=3;
return (ui16Year*365) +(ui16Year/4) + (30*ui16Month) +(ui16Month*3+2) / 5 + ui16Day -
7265/*32083 - 24817*/;
}
MJD - Modified Julian Date.