def dt_to_decimal(dt):
    t_sec = calendar.timegm(dt.utctimetuple()) + (dt.microsecond/1e6)
    return Decimal("%.6f" % t_sec)
dataset/ETHPy150Open openstack/stacktach-winchester/winchester/models.py/dt_to_decimal/original