implement and test ParseTimestamp