Time shift logic ADVANCED-plz help
Hi All,
I am working in an attendance software,I am stuck in the following,
before pointing to the real problem i will tell you some features.
1) There is no shift timing employee can swap
the card any time and no restriction in number of swap.
2) The timing can be night shift also.
My real problem is the second point, I thought that i can count the swap entry
for eg: in particular date first entry can be treated as "IN" second entry treated as "OUT" and goes on...,It was working fine if the time not going after "24:00" if it crosses then the
entry is considering again as "IN" because its a new day,
Can anybody have the logic for this????
|