Skip to content
This repository was archived by the owner on Aug 8, 2024. It is now read-only.

Fixed commentary #26

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apache_log_parser/__init__.py
Original file line number Diff line number Diff line change
@@ -98,7 +98,7 @@ def __repr__(self):
def apachetime(s):
"""
Given a string representation of a datetime in apache format (e.g.
"01/Sep/2012:06:05:11 +0000"), return the python datetime for that string, with timezone
"[01/Sep/2012:06:05:11 +0000]"), return the python datetime for that string, with timezone
"""
month_map = {'Jan': 1, 'Feb': 2, 'Mar':3, 'Apr':4, 'May':5, 'Jun':6, 'Jul':7,
'Aug':8, 'Sep': 9, 'Oct':10, 'Nov': 11, 'Dec': 12}