def convertDatetime(t):
    epoch = datetime.datetime.utcfromtimestamp(0)
    delta = t - epoch
    millis = delta.total_seconds() * 1000
    return int(millis)
Converts the specified datetime object into its appropriate protocol
dataset/ETHPy150Open ga4gh/server/ga4gh/protocol.py/convertDatetime