Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the DATETIME13 format to the list of SAS datetime formats #44

Merged
merged 2 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added data/datetime13.xpt
Binary file not shown.
2 changes: 1 addition & 1 deletion src/datetime.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const sas_date_formats = [
"E8601DA", "E8601DN"
]
const sas_datetime_formats = [
"DATETIME", "DATETIME18", "DATETIME19", "DATETIME20", "DATETIME21",
"DATETIME", "DATETIME13", "DATETIME18", "DATETIME19", "DATETIME20", "DATETIME21",
"DATETIME22", "TOD", "E8601DT", "E8601DX", "E8601DZ", "E8601LX",
]
const sas_time_formats = [
Expand Down
4 changes: 4 additions & 0 deletions test/readstat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -428,4 +428,8 @@ end
@test m.file_format_version == 5
@test m.table_name == "SAMPLE"
@test m.file_ext == ".xpt"

xpt = "$(@__DIR__)/../data/datetime13.xpt"
d = readstat(xpt)
@test isa(only(d.DTTEST), DateTime)
end
Loading