Past Perfect
He had written his essay by 7 o’clock. I had finished my work by 8 o’clock. They had painted the fence by the evening. She had knitted a scarf by the autumn.You had read the book by the afternoon.
Past Perfect Continuous
He had been repairing his bike since the morning when I came. I had been swimming all morning when he called me.She had been waiting for hours.It had been raining all day.They had been practising since 8 o’clock.