What ended on Friday, October 5 1582