Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("GMT 0"));
calendar.setTimeInMillis(timeToBeTranslated);
int year = calendar.get(Calendar.YEAR);
int month = calendar.get(Calendar.MONTH);
int dayOfMonth = calendar.get(Calendar.DAY_OF_MONTH);
int hour = calendar.get(Calendar.HOUR_OF_DAY);
int minute = calendar.get(Calendar.MINUTE);
int second = calendar.get(Calendar.SECOND);
If you have another time zone rather than GMT 0, set correct number for this time zone e.g. for Geneva use 1.
The time zone of the incoming data (ticks, candles) is 0.
You can also get other fields from calendar, please see this link for more details:
https://java.sun.com/javase/6/docs/api/j ... endar.htmlFor online conversion this link could be useful:
https://www.onlineconversion.com/unix_time.htm