Homogenization of sound hard metamaterials in the time domain