Java tutorial
//package com.java2s; import java.util.Calendar; public class Main { public static long getLocalToUtcDelta() { Calendar local = Calendar.getInstance(); local.clear(); local.set(1970, Calendar.JANUARY, 1, 0, 0, 0); return local.getTimeInMillis(); } }