I have 3 time-related columns in my table:
vreme_od (TIME), vreme_do(TIME), datum(CURRENT TIMESTAMP)
vreme_od
and vreme_do
have H:i:s
time values (the difference between vreme_od
and vreme_do
is 1 hour), vreme_do
can be update from a script.
The thing is, I have to come up with a catch that updates vreme_do
till a certain time, let's say, 21:00.
So, If you fire up the script at 20:53, for an example, vreme_od
will have a value of "20:53:00", and vreme_do
should have a value of "07:53:00" on the next day.
Can some one help me with this, I'm stuck for days with it...