Changeset 830
- Timestamp:
- 11/21/05 06:54:05
- Files:
-
- trunk/cherrypy/_cputil.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/_cputil.py
r823 r830 1 1 """A few utility classes/functions used by CherryPy.""" 2 2 3 import cgi 4 import datetime 3 5 import sys 4 6 import traceback 5 import time6 import cgi7 7 8 8 import cherrypy 9 9 from cherrypy.lib import httptools 10 11 10 12 11 def get_object_trail(objectpath=None): … … 93 92 94 93 def logtime(): 95 return '%04d/%02d/%02d %02d:%02d:%02d' % time.localtime(time.time())[:6] 94 now = datetime.datetime.now() 95 month = httptools.monthname[now.month][:3].capitalize() 96 return '%02d/%s/%04d:%02d:%02d:%02d' % ( 97 now.day, month, now.year, now.hour, now.minute, now.second) 96 98 97 99 def _cpLogAccess():

