Java tutorial
//package com.java2s; import java.util.TimeZone; public class Main { public static long getLocalDateFromUTC(long utcDate) { //// TimeZone tz = TimeZone.getDefault(); long gmtOffser = tz.getOffset(utcDate); return utcDate - gmtOffser; } }