DateTimeFormatter trouble with a pattern
问题 I am writing a stock program that (so far) gets the data from "Markit on Demand" through a request such as this: http://dev.markitondemand.com/Api/v2/Quote/xml?symbol=aapl This returns the data in xml, with various measures of the stock (Symbol, name, last price, change, time stamp, etc). I am having trouble creating a DateTimeFormatter in Java 8 to make the timestamp. One example of a timestamp: Fri Jul 18 15:59:00 UTC-04:00 2014 So far the pattern I have is as follows: EEE MMM d HH:mm:ss