I have a python script that uses data from the statistics table to generate a monthly invoice for energy used by my car.
Before the “start” column contained the date and time in human readable format.
My script filtered out the datapoints using yyyy-mm.
Now that column is empty and there’s a new start_ts column.
How do I convert that float into a date?
I tried CAST(start_ts AS DATE) in the sqlite query but that doesn’t work.
What is the format of that start_ts column and how do I convert it to yyyy-mm?