I am creating a new time clock for my work.
I am trying to figure out the best format to capture the punch in and punch out information for easy calculation later.
any suggestions?
right now i have it set up in this fashion
date_in
time_in
date_out
time_out
i then have mysql doing a time to seconds conversion on difference between time_in and time_out.
This works ok, but only if they punch in and out on the SAME date.
how can i capture the information so i can still calculate the time difference, but also account for it being from a different date.
I'm just trying to set this up right ahead of time, so i don't have to try to fix it later.
thanks in advance,
chris