What is the meaning of ringing church bells?

In Catholic churches, bells are rung before Mass and during the Angelus. Before they would ring the bells to tell the time, but no one does that anymore.