我如何从 yahoo api 接收接收日期时间的特定时区?
什么是默认时区?
http://hk.finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s=USDHKD=x
http://finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s=USDHKD=x
接收时间相同
private String GetRequest() throws ClientProtocolException, IOException{
HttpClient httpClient = new DefaultHttpClient();
HttpContext localContext = new BasicHttpContext();
HttpGet httpGet = new HttpGet("http://finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s=USDHKD=x");
HttpResponse response = httpClient.execute(httpGet, localContext);
BufferedReader reader = new BufferedReader(
new InputStreamReader(
response.getEntity().getContent()
)
);
String line;
while ((line = reader.readLine()) != null) {
String[] RowData = line.split(",");
String value = RowData[1];//value = qoute
String date = RowData[2].replaceAll("\"", "");
String time = RowData[3].replaceAll("\"", "");
tvDateTimeValue.setText(date+"\t"+time);
return value;
}
return "";
}