To express a period of time: complement of duration
In Chinese, a Complement of Duration is used to indicate how long an action or state lasts.
Common duration expressions: 一刻钟 (yí kèzhōng — 15 minutes / a quarter), 半个小时 (bàn gè xiǎoshí — half an hour), 两天 (liǎng tiān — two days), 三个月 (sān gè yuè — three months).
1. Duration of a Completed Action
This structure indicates that an action lasted for a specific period of time and has already finished.
Subject + Verb + 了 + Duration + Object
她工作了三年。
She worked for three years.
我们坐了一个小时公共汽车。
We took the bus for an hour.
你怎么晚到了一刻钟?
Why were you 15 minutes late?
我们唱了两个小时歌。
We sang songs for two hours.
2. Duration of an Ongoing Action
Adding a second 了 (le) at the end of the sentence indicates that the action has been going on for a period of time and is still continuing.
Subject + Verb + 了 + Duration + Object + 了
我学习了一年汉语了。
I have been studying Chinese for a year (and still am).
她看了半个小时电视了。
She has been watching TV for half an hour.
他们游了二十分钟泳了。
They have been swimming for twenty minutes.
我都在这儿坐了半个小时了。
I have already been sitting here for half an hour.