def from_jd(jdc):
cdc = floor(jdc) + <NUM_LIT:0.5> - EPOCH<EOL>year = floor((cdc - floor((cdc + <NUM_LIT>) / <NUM_LIT>)) / <NUM_LIT>) + <NUM_LIT:1><EOL>yday = jdc - to_jd(year, <NUM_LIT:1>, <NUM_LIT:1>)<EOL>month = floor(yday / <NUM_LIT:30>) + <NUM_LIT:1><EOL>day = yday - (month - <NUM_LIT:1>) * <NUM_LIT:30> + <NUM_LIT:1><EOL>return year, month, day<EOL>
Create a new date from a Julian date.