They have been doing no work this afternoon.
They had been doing no work this afternoon.
Provided the time specified 'afternoon' elapsed.
English Language Learners Stack Exchange is a question and answer site for speakers of other languages learning English. It only takes a minute to sign up.Sign up to join this community