def to_datetime(jdc):
year, month, day = gregorian.from_jd(jdc)<EOL>frac = (jdc + <NUM_LIT:0.5>) % <NUM_LIT:1><EOL>hours = int(<NUM_LIT> * frac)<EOL>mfrac = frac * <NUM_LIT> - hours<EOL>mins = int(<NUM_LIT> * round(mfrac, <NUM_LIT:6>))<EOL>sfrac = mfrac * <NUM_LIT> - mins<EOL>secs = int(<NUM_LIT> * round(sfrac, <NUM_LIT:6>))<EOL>msfrac = sfrac * <NUM_LIT> - secs<EOL>ms = int(<NUM_LIT:1000> * round(msfrac, <NUM_LIT:6>))<EOL>return datetime(year, month, day, int(hours), int(mins), int(secs), int(ms), tzinfo=utc)<EOL>
Return a datetime for the input floating point Julian Day Count