A cylinder used for diving must be visually inspected every 2.5 years and hydro-statically tested every 5 years. The cylinder should be additionally tested if it is dropped or damaged in any way.
A cylinder for surface use only e.g. air rifle filling only requires hydrostatic testing every 5 years.