from datetime import datetime


def to_excel_ts(ts):
    """
    Converts a datetime timestamp into Excel format date time
    """
    EPOCH = datetime(1899, 12, 30)
    delta = ts - EPOCH
    return float(delta.days) + (float(delta.seconds) / 86400)