|
|
@ -18,6 +18,8 @@ F_LOG = "%Y%m%d_%H%M%S" |
|
|
|
F_DE_TSTAMP = "%d.%m.%Y %H:%M:%S" |
|
|
|
MONTH_EN = ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"] |
|
|
|
MONTH_DE = ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "dez"] |
|
|
|
F_TIME_DEFAULT = F_DIR |
|
|
|
|
|
|
|
def getActdate(format): |
|
|
|
return getFormatdate(datetime.datetime.now(), format) |
|
|
|
|
|
|
@ -150,8 +152,8 @@ def parseDate(instring): |
|
|
|
mon = int(res.group(2)) |
|
|
|
day = int(res.group(1)) |
|
|
|
return (year, mon, day, hour, min, sec) |
|
|
|
if re.match(r"\w{3} \w{3} \d{1,2} \d{1,2}[:]\d{1,2}[:]\d{2} \d{4}", instring.strip()): |
|
|
|
res = re.search(r"\w{3} (\w{3}) (\d{1,2}) (\d{1,2})[:](\d{1,2})[:](\d{2}) (\d{4})", instring.strip()) |
|
|
|
if re.match(r"\w{3} \w{3}\s+\d{1,2} \d{1,2}[:]\d{1,2}[:]\d{2} \d{4}", instring.strip()): |
|
|
|
res = re.search(r"\w{3} (\w{3})\s+(\d{1,2}) (\d{1,2})[:](\d{1,2})[:](\d{2}) (\d{4})", instring.strip()) |
|
|
|
month = res.group(1) |
|
|
|
mon = getMonthInt(month) |
|
|
|
day = int(res.group(2)) |
|
|
|