Specify the measure
Macaulay duration describes a weighted timing of cash flows. Modified duration approximates sensitivity to a small change in yield under its stated assumptions.
Limits
Duration is not the same as maturity. Convexity, embedded options, changing credit spreads and larger yield moves can affect the approximation.