handling cases where the timestamp is not a valid Unix timestamp or where the length parameter is not one of the expected values. #3 Pull request to this issue