I have been writing a program and I came across a problem and have scrapped my code so many times, here is an example of what im trying to do.
I have the date and time setup, say for example the 6th of October at 21:57.
I wrote the code to subtract that date from the current date to give me how long its been since, it worked fine till it ticked over midnite, then it said 1 day! hehe i can see why it said one day, as "7 - 6 = 1", but it really has only been 2 hours and 3 minutes. Any suggestions on how to do this to actually show the correct amount of time since, i wrote some more code but that seemed to get screwed up somewhere, I'm trying to make the code short and sweet, because the idea i have in my mind is a long idea, where i get the total amount of hours and work from there, as you can see.. ouch! hehe So any of you got a good solution or if you find this really easy which I bet most of you would post me some code examples?
Thankyou for you time.