Skip to content

MacOS Sonoma 14.3 - Query problem with date #7

Description

@louiskabo

While attempting to run this script on a 2023 MacBook Pro with MacOS Sonoma v14.3, I am encountering the following error:

    (datetime.date(2016, 10, 5), datetime.date(2024, 1, 22))
TypeError: descriptor 'date' for 'datetime.datetime' objects doesn't apply to a 'int' object

I believe the problem line is:

## High Sierra and above
messages = pd.read_sql_query('''select *, datetime(date/1000000000 + strftime("%s", "2001-01-01") ,"unixepoch","localtime")  as date_utc from message''', conn)

I will say, it still ran, good job!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions