13012 vs 12066
|
01-22-2018, 11:17 AM
Post: #3
|
|||
|
|||
RE: 13012 vs 12066
Hello,
Here is the routine : DateG2JJ(date) // for date ≥ oct 15 1582 (2299161) BEGIN LOCAL year,month,day; LOCAL cnt,diz; // Cut the date YYYY.MMDD into sub parts year:=IP(date); // YYYY month:=IP(100*FP(date)); // MM day:=IP(FP(FP(date)*100)*100); // DD // Move the beginning of the year to // March 1st (adding 1 day, e.g. feb 29th // becomes easier if at the end) IF month<3 THEN year:=year-1; month:=month+12; END; // Cut the year into parts // (Needed for converting Gregorian // calendar dates to JDN) cnt:=IP(year/100); // [YY]YY diz:=IP(year-100*IP(year/100)); //YY[YY] // julian day number at noon // from gregorian date YYYY.MMDD RETURN IP((146097*cnt+6884480)/4) +IP(1461*diz/4) +IP((153*month-457)/5) +day-1; END; Hope you can me help. Gérard. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
13012 vs 12066 - ggauny@live.fr - 01-22-2018, 10:17 AM
RE: 13012 vs 12066 - toml_12953 - 01-22-2018, 10:53 AM
RE: 13012 vs 12066 - ggauny@live.fr - 01-22-2018 11:17 AM
RE: 13012 vs 12066 - DrD - 01-22-2018, 01:07 PM
RE: 13012 vs 12066 - Carlos295pz - 01-22-2018, 02:40 PM
RE: 13012 vs 12066 - ggauny@live.fr - 01-22-2018, 03:33 PM
|
User(s) browsing this thread: 1 Guest(s)