from datetime import datetime


def mjd_convert(dt):
    """Convert datetime dt to the corresponding MJD
    51544.00 == 2000-01-01 00:00:00"""
    st_dt = datetime(2000, 1, 1)
    return 51544.00 + (dt - st_dt).days + (dt - st_dt).seconds / 86400