[iPhone] Julian > Gregorian Month
+ (float)julianToMonthCalendar:(float)Julian
{
float a, b, c, d, e, m, month;
a = Julian + 32044;
b = floor(((4 * a) + 3) / 146097);
c = a - floor((146097 * b) / 4);
d = floor(((4 * c) + 3) / 1461);
e = c - floor((1461 * d) / 4);
m = floor(((5 * e) + 2) / 153);
month = m + 3 - 12 * floor(m / 10);
return month;
}
댓글
댓글 쓰기