- attached date_copy.png
"OverflowError: date value out of range" converting some dates
Issue #11
resolved
When trying to convert a fairly simple SAS dataset with only dates in it, I'm getting the error
[date_dd_mm_yyyy_copy.sas7bdat] failed to process data (you might want to try passing align_correction=False to the SAS7BDAT constructor)
Traceback (most recent call last):
File "sas7bdat-2.0.4/sas7bdat.py", line 625, in readlines
self.properties.row_length
File "sas7bdat-2.0.4/sas7bdat.py", line 717, in _process_byte_array_with_data
'date', temp, length
File "sas7bdat-2.0.4/sas7bdat.py", line 558, in _read_val
val = (datetime(1960, 1, 1) + timedelta(days=val)).date()
OverflowError: date value out of range
Failed to convert 1 of 1 file:
../test-data/date_dd_mm_yyyy_copy.sas7bdat
This file has dates between 1959 and 2015 in it, see the attached screenshot
Comments (2)
-
reporter -
repo owner - changed status to resolved
- Log in to comment