1: Something that started in the past and continued up to another action or time in the past.
The past perfect continuous tells us 'how long', just like the present perfect continuous, but this time the action continues up to a point in the past rather than the present. Usually we use 'for + time'.