It was evident that they had been spending their time pleasantly, and were not aware of the length of their absence. 
It was evident that they had been spending their time pleasantly, and were not aware of the length of their absence.
