We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi I need to compare two different date&time. Anyone ho have any app note on this?
I have Date & Time as a string and want it in long int so I can make some artimetich on it. i.e Now + 2hour or Now + 2 day and 6 hour.
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?