Java tutorial
//package com.java2s; public class Main { public static boolean isBeyondOneMonth(long timestamp) { return Math.abs((getServerTime() - timestamp)) > 30 * 24 * 60 * 60 * 1000; } public static long getServerTime() { return System.currentTimeMillis(); } }