>? (jd - int(jd)) * 86400 > >* or perhaps you find the following more readable: > >? (jd - int(jd)) * 24 * 60 * 60 >Sorry, that will give you the number of seconds from midnight. To convert to a datetime, you might do additional manipulations to convert to hours, minutes and seconds, and then (for example) use the datetime() function.
Remainder = jd - int(jd) Hours = int(Remainder * 24) Remainder = Remainder - Hours * 24 Minutes = int(Remainder * 24 * 60) Remainder = Remainder - Minutes * 24 * 60 ...