I'm trying to convert a string of a data and time to be understandable for mathematica (I want to make time related plots).
However, I can get my head around how to do this.
For example:
temp = "Sun Jun 01 22:00:21 +0000 2014";
I have tried the following commands (and many more variations):
DateList[{temp, {"DayName", "Month", "Day", "Hour", "Minute",
"Second", "TimeZone", "Year"}}];
DateList[{temp, {"DayName", "Month", "Day", "Hour", ":", "Minute",
":", "Second", "TimeZone", "Year"}}]
Both gave me this type of error:
DateString::str: "String \!\(\"Sun Jun 01 22:00:21 +0000 2014\"\) cannot be interpreted as a date in format {\!\(\"DayName\", \"Month\", \"Day\", \"Hour\", \"Minute\", \"Second\", \"TimeZone\", \"Year\"\)}."
Can anyone tell what I'm doing wrong? Thank you!!