converting historical time stamp to date or zone date

sivannarayanagunji
can some one please help me in converting historical data time stamp to date or zone date in java
  • raaghulr
    In python, you can do quick, with split function to get date and time separate. give a try
  • sivannarayanagunji
    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.