Re: Always date and time
There are always problems with date and time in computers. It is one of the most difficult things to get right. And when you get it right, you probably got it wrong anyway, somewhere.
Very true. I knocked up a quick Python script to make a graph from an rsyslog file using datetime.util.parse to turn the month and day in to a full date, and thought was working perfectly until I looked at the graph on new years day. Instead of showing the last 2 days data, it showed a year with data from 1st Jan 2022 and 31st Dec 2022. Quickly changed it to use datetime.strptime with a calculation of the correct year.