☰
Login
Signup
Home
›
Java client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
13.2K
All Categories
0
Incidents
128
Node JS client
38
Go client
769
.Net API client
363
Kite Publisher
532
.Net / VBA / Excel (3rd party)
435
Algorithms and Strategies
969
Java client
1K
API clients
401
PHP client
3.8K
Python client
331
Mobile and Desktop apps
1.3K
Market data (WebSockets)
3.2K
General
In this Discussion
June 2019
sivannarayanagunji
June 2019
raaghulr
converting historical time stamp to date or zone date
sivannarayanagunji
June 2019
in
Java client
can some one please help me in converting historical data time stamp to date or zone date in java
raaghulr
June 2019
In python, you can do quick, with split function to get date and time separate. give a try
sivannarayanagunji
June 2019
i got it ,
String timestamp=historicalData.dataArrayList.get(i).timeStamp;
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ssXX");
ZonedDateTime localTimeObj1 = ZonedDateTime.parse(timestamp.toString(),
formatter).plusMinutes(15);
thanks,
Siva
This discussion has been closed.
String timestamp=historicalData.dataArrayList.get(i).timeStamp;
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ssXX");
ZonedDateTime localTimeObj1 = ZonedDateTime.parse(timestamp.toString(),
formatter).plusMinutes(15);
thanks,
Siva