Mar-03-2019, 12:42 PM
Is this not okay?
>>> import julian >>> import pendulum >>> >>> dt = '2018-09-09 12:12:12.005876' >>> dt = pendulum.parse(dt) >>> dt DateTime(2018, 9, 9, 12, 12, 12, 5876, tzinfo=Timezone('UTC')) >>> julian.to_jd(dt, fmt='jd') 2458371.0084722904Same or this is or more correct than Calendar date to Julian date which can take 1 decimal place in seconds.