I am parsing one api date related to the weather app.
Here I am getting time in epoch time I want to convert into Date time format.
I am getting sunrise time that is epoch time. It is 1569494827(input Time). I want to convert this time into a date. It has offset time in milliseconds -14400(offset in millisecond).
This time is New York Morning time. Its Output will be 06:47 AM but I am unable to convert this epoch time to Output time
This is a response: I have to convert into Date
"city": {
"id": 5128581,
"name": "New York",
"coord": {
"lat": 40.7306,
"lon": -73.9867
},
"country": "US",
"population": 8175133,
"timezone": -14400,
"sunrise": 1569494827,
"sunset": 1569538053
}