1. He has not felt happy recently. (MOOD)
He hasn't been in happy mood recently
2. It is dangerous to drive fast in the city. (DRIVING)
Driving fast in the city is dangerous
3. He took only an hour to learn to play chess. (IT)
It took him an hour to learn to play chess