Lines Matching defs:JD
6599 i64 JD;
6601 /* JD = INT(365.25 * (Y+4716)) + INT(30.6001 * (M+1)) + D + B - 1524.5 */
6603 /* Calculate the JD in seconds for noon on the day in question */
6608 JD = (i64)(24*60*60) * (
6614 /* Correct the JD for the time within the day */
6615 JD += (hr-12) * 3600 + min * 60 + sec;
6617 /* Convert JD to unix timestamp (the JD epoch is 2440587.5) */
6618 return (u32)(JD - (i64)(24405875) * 24*60*6);
6627 /* Convert unix timestamp to JD (2440588 is noon on 1/1/1970) */
6628 i64 JD = (i64)2440588 + mUnixTime / (24*60*60);
6634 A = (int)((JD - 1867216.25)/36524.25);
6635 A = (int)(JD + 1 + A - (A/4));