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

Date format sqlite database #1060

Open
abbynewbury opened this issue May 30, 2023 · 0 comments
Open

Date format sqlite database #1060

abbynewbury opened this issue May 30, 2023 · 0 comments

Comments

@abbynewbury
Copy link

Should all dates in a sqlite3 database be in 'unixepoch' format prior to running CohortDiagnostics? My dates are currently in ISO-8601 format and when running CohortDiagnostics, the code stops after the GetCalendarYearRange.sql file since the returned yearRange is null. The specific sql query run by GetCalendarYearRange.sql is "SELECT CAST(STRFTIME('%Y', MIN(observation_period_start_date), 'unixepoch') AS INT) AS start_year,CAST(STRFTIME('%Y', MAX(observation_period_end_date), 'unixepoch') AS INT) AS end_year FROM main.observation_period;" which I believe is assumes that the existing dates are in unixepoch format. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant