yahoo api에서받은 날짜 - 시간에 대한 특정 시간대를 어떻게받을 수 있습니까?yahoo api timezone
기본 시간대는 무엇입니까?
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
수신 시간
는 값이 항상 UTC에 제시되어 마치 같은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 "";
}
너무 그렇게 생각합니다. 내가 뭐 놓친 거 없니? 위와 동일한 형식 지정자를 사용하고 있습니다. –