MCPcopy Index your code
hub / github.com/RustPython/RustPython / log_date_time_string

Method log_date_time_string

Lib/http/server.py:671–677  ·  view source on GitHub ↗

Return the current time formatted for logging.

(self)

Source from the content-addressed store, hash-verified

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

Callers 2

log_messageMethod · 0.95
log_messageMethod · 0.80

Calls 1

timeMethod · 0.45

Tested by

no test coverage detected