changes timestamp to decimal