Java tutorial
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.TimeZone; public class Main { public static long getCurrentTimestamp() { return Calendar.getInstance(TimeZone.getTimeZone("UTC")).getTimeInMillis(); } }