As in Longman Dictionary, it is said "last" in an intransitive verb , but there is one example :
Each lesson lasts an hour.
If "last" is an intransitive as stated, then "an hour" is not the object. Then What is the function of "an hour"? Is it adverbial?