라벨이 year인 게시물 표시

[iPhone] Julian > Gregorian Year

+ ( float )julianToYearCalendar:( float )Julian {     float a, b, c, d, e, m, year;     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 );     year = ( 100 * b) + d - 4800 + floor (m / 10 );          return year; }