<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_ftr(self):
 """ Process footer and return the processed string """

        if not self.ftr:
            return self.ftr

        width = self.size()[0]
        return re.sub(
            "%time", "%s\n" % time.strftime("%H:%M:%S"), self.ftr).rjust(width)