Java tutorial
//package com.java2s; import java.util.GregorianCalendar; import java.util.TimeZone; public class Main { private static final TimeZone GMT = TimeZone.getTimeZone("GMT"); public static long currentYearInMills() { GregorianCalendar gregoriancalendar = new GregorianCalendar((new GregorianCalendar()).get(1), 1, 1); gregoriancalendar.setTimeZone(GMT); return gregoriancalendar.getTimeInMillis(); } }