Hello,
In a log data from a basic text file I have this date-time format:
"[06/Jun/2018:13:35:32]"
I did a function to convert it to Wolfram Language date object, cleaning up the "[", "]" and a central ":"
fixDateString[val_String] :=
Interpreter["DateTime"][
StringReplacePart[StringReplace[val, {"[" -> "", "]" -> ""}],
" ", {12, 12}]]
fixDateString["[01/Jun/2018:02:05:42]"]
DateObject[{2018, 6, 1, 2, 5, 42}, "Instant", "Gregorian", -3.]
Surprisingly it is a very slow operation!!!
Any suggestion about how to make it faster is appreciated! I am using Parallelize to use my CPUs available.
Thanks! :-)