Hai friends,

i just want to calculate employee work hours.
i use the following method and work well it seems.
is this method i am using is professional php way? if not, please tell what type of problem can be occour?

example :

Code:
$timein=09:10:00;
$timeout=22:20:00;
$workhrs=$timeout-$timein;