Next / Previous / Contents / Shipman's homepage

10.7. MJD.fromDatetime(): Convert a datetime

Use this static method to convert a standard Python datetime.datetime instance dt to an MJD instance.

MJD.fromDatetime(dt)