Hi I need to compare two different date&time. Anyone ho have any app note on this?
Wouldn't it be better to have it as a structure? Then you can access, for example, date_time.hour, date_time.day etc Or follow Michael Karas' approach in the thread that Graham cited, and do all your arithmetic in serial numbers - and just convert to/from days/hours/minutes etc for presentation?