Java tutorial
//package com.java2s; import java.math.BigInteger; public class Main { public static int compareTimestamps(String lhsTimestamp, String rhsTimestamp) { BigInteger lhs = new BigInteger(lhsTimestamp); BigInteger rhs = new BigInteger(rhsTimestamp); return lhs.compareTo(rhs); } }