Hi
I am a J2ME developer I am new to Dani Web.
I am using chartapi.finance.yahoo.com to calculate and display chart.
My questions is how to convert TIMESTAMP value to a Java Date or Calendar Object ?.....
For Eg: URL GIVEN BELOW
http://chartapi.finance.yahoo.com/instrument/1.0/aapl/chartdata;type=quote;range=1d/csv/
Its output will be
uri:/instrument/1.0/aapl/chartdata;type=quote;range=1d/csv/
ticker:aapl
unit:MIN
timezone:EST
gmtoffset:-18000
previous_close:199.2300
Timestamp:1265207400,1265230800
labels:1265209200,1265212800,1265216400,1265220000,1265223600,1265227200,1265230800
values:Timestamp,close,high,low,open,volume
close:194.7100,200.1600
high:194.9800,200.2000
low:194.4200,200.0300
open:194.7599,200.1600
volume:7100,678600
1265207400,195.2600,195.4000,195.1000,195.1700,273700
1265207460,195.0400,195.2700,194.9200,195.2300,127500
.........
How to convert values hilighted in RED to Date or calendar Object?...
I Tried this
Calendar cal=Calendar.getInstance();
cal.setTime(new Date(1265207400));
But unfortunatly cal value is set to 15/Jan/1970 15:26:47.:ooh:
Danni Gurus please help....:|
Thanks in Advance
Zac