ts -> double