Dogs can tell time by smell. They can smell different times of the day, and how long you have been gone by how much your (owner's) smell has dissipated since you have left.