Skip to content

Fix datetime to int64 Unix timestamp conversion, handling ns/us/ms units#578

Open
pjkroll wants to merge 3 commits intolouisnw01:mainfrom
pjkroll:fix-datetime-conversion
Open

Fix datetime to int64 Unix timestamp conversion, handling ns/us/ms units#578
pjkroll wants to merge 3 commits intolouisnw01:mainfrom
pjkroll:fix-datetime-conversion

Conversation

@pjkroll
Copy link

@pjkroll pjkroll commented Feb 24, 2026

The function _df_datetime_format converts the 'time' column to seconds ([s]) using int64, but it does not consider that the source datetime64 column may have different precisions (ns, us, ms). The divisor should be selected based on the original column's datetime precision to ensure correct conversion.

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

Successfully merging this pull request may close these issues.

1 participant