hey there,
i have a php script that selects all records on a month by month basis and calculates the amount of time of certain conditions..
so what i need to know is how to figgure out the amount of time in seconds between the last datetime and the first second of the next month.
for example, if the last datetime in a certain month was 2006-08-21 12:14:23, how is the best way to find the number of seconds between that date and 2006-09-01 00:00:00 ?
it would be easy to do with math, but not every month has the same number of days in it.
if there is a MySQL query that can do that, i could use that too.
thanks