You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While using haven to read SAS7BDAT file, I found that haven will not read the creation/modified time of the file. The rationale of getting these two timestamps is that these two timestamps stored in the metadata of a SAS7BDAT file are different from the timestamps read the OS.
And in ReadStat, there are already two functions, readstat_get_creation_time and readstat_get_modified_time, which can be used to read the creation/modified time. But they are not exposed in haven yet.
My proposal is that maybe we can add these two timestamps to the attribute of the output.
I forked haven and have made a commit to add creation/modified time to the output's attribute here for you kind review. I compared the creation/modified time read by readstat_get_creation_time and readstat_get_modified_time and the creation/modified time obtained by PROC CONTENT from my end. The result shows that they are identical.
If you find my implementation workable, I can make a pull request to haven.
Thank you!
Jack
The text was updated successfully, but these errors were encountered:
I have made a PR to haven for this new feature. In the PR, I also included changes in the tests just to pass the tests with the new feature. Further discussion on how to test the new feature might be needed.
Thank you for making this awsome package!
While using
haven
to read SAS7BDAT file, I found thathaven
will not read the creation/modified time of the file. The rationale of getting these two timestamps is that these two timestamps stored in the metadata of a SAS7BDAT file are different from the timestamps read the OS.And in
ReadStat
, there are already two functions,readstat_get_creation_time
andreadstat_get_modified_time
, which can be used to read the creation/modified time. But they are not exposed inhaven
yet.My proposal is that maybe we can add these two timestamps to the attribute of the output.
I forked
haven
and have made a commit to add creation/modified time to the output's attribute here for you kind review. I compared the creation/modified time read byreadstat_get_creation_time
andreadstat_get_modified_time
and the creation/modified time obtained byPROC CONTENT
from my end. The result shows that they are identical.If you find my implementation workable, I can make a pull request to
haven
.Thank you!
Jack
The text was updated successfully, but these errors were encountered: