Greetings,
I'm using mysql database. When the end user submit the form, we do keep the date and the time the form submitted. Thr problem is, at a particular time, how to calculate whether the time the form was submitted is already past 1 hour.
In the other words, whenever i run a program,the program should get the date and time from the database , compare with the date and time at that time and calculate whether the duration is one hour or not...
And FYI, one day = 7am up to 7am (the next day).. it's not from 12 to 12... which means,
Let say, today's date is 5/5/2003 AND
1) if the form is submmited at 6.59am, the date will be 4/5/2003 and time will be 6.59am ..BUT,
2) if the form is submitted at 7.03 am, the date will be 5/5/2003 and time will be 7.03 am..
So,how to do the calculation?? Please help..
Thanks and best regards,
Parames.s
I'm using mysql database. When the end user submit the form, we do keep the date and the time the form submitted. Thr problem is, at a particular time, how to calculate whether the time the form was submitted is already past 1 hour.
In the other words, whenever i run a program,the program should get the date and time from the database , compare with the date and time at that time and calculate whether the duration is one hour or not...
And FYI, one day = 7am up to 7am (the next day).. it's not from 12 to 12... which means,
Let say, today's date is 5/5/2003 AND
1) if the form is submmited at 6.59am, the date will be 4/5/2003 and time will be 6.59am ..BUT,
2) if the form is submitted at 7.03 am, the date will be 5/5/2003 and time will be 7.03 am..
So,how to do the calculation?? Please help..
Thanks and best regards,
Parames.s