Return the current time formatted for logging.
(self)
| 641 | return email.utils.formatdate(timestamp, usegmt=True) |
| 642 | |
| 643 | def log_date_time_string(self): |
| 644 | """Return the current time formatted for logging.""" |
| 645 | now = time.time() |
| 646 | year, month, day, hh, mm, ss, x, y, z = time.localtime(now) |
| 647 | s = "%02d/%3s/%04d %02d:%02d:%02d" % ( |
| 648 | day, self.monthname[month], year, hh, mm, ss) |
| 649 | return s |
| 650 | |
| 651 | weekdayname = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] |
| 652 |
no test coverage detected