From the link...
"The dual use of the word "duration", as both the weighted average time until repayment and as the percentage change in price, often causes confusion. Strictly speaking, Macaulay duration is the name given to the weighted average time until cash flows are received, and is measured in years. Modified duration is the name given to the price sensitivity and is the percentage change in price for a unit change in yield. When yields are continuously compounded Macaulay duration and modified duration will be numerically equal. When yields are periodically compounded Macaulay and modified duration will differ slightly, and there is a simple relation between the two. Modified duration is used more than Macaulay duration."
Duration is a length of time. Therefore it is years.