Timestamp string to number