DS3231 Read Time Error

Is the given sketch working? If yes, then you figure out the necessity of testing this inequality. (This is to print the leading zero on the Serial Monitor.)