Return the current time formatted for logging.
(self)
| 669 | return email.utils.formatdate(timestamp, usegmt=True) |
| 670 | |
| 671 | def log_date_time_string(self): |
| 672 | """Return the current time formatted for logging.""" |
| 673 | now = time.time() |
| 674 | year, month, day, hh, mm, ss, x, y, z = time.localtime(now) |
| 675 | s = "%02d/%3s/%04d %02d:%02d:%02d" % ( |
| 676 | day, self.monthname[month], year, hh, mm, ss) |
| 677 | return s |
| 678 | |
| 679 | weekdayname = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] |
| 680 |
no test coverage detected