def _to_epoch(self, ts):
year = self.year<EOL>tmpts = "<STR_LIT>" % (ts, str(self.year))<EOL>new_time = int(calendar.timegm(time.strptime(tmpts, "<STR_LIT>")))<EOL>if new_time > int(time.time()):<EOL><INDENT>year -= <NUM_LIT:1><EOL>tmpts = "<STR_LIT>" % (ts, str(year))<EOL>new_time = int(calendar.timegm(time.strptime(tmpts, "<STR_LIT>")))<EOL><DEDENT>return new_time<EOL>
Adds a year to the syslog timestamp because syslog doesn't use years

:param ts: The timestamp to add a year to
:return: Date/time string that includes a year