In a side project I have to manage, compare and display dates from different formats. What's the best design strategy to follow?
I planned:
- All dates are parsed according their format and stored in the db in 9-tuple python format using UTC
- When I have to do calculations and compares I transform 9-tuple in datetime object (using UTC). If I have to store back some date calculation I use again 9 tuple format
- On user interface time is display converting from UTC to user's timezone
Have you any feedback about this strategy?