forked from I2P_Developers/i2p.i2p
BuildTime: Update, add to cmd line tools
This commit is contained in:
@ -34,10 +34,10 @@ public class BuildTime {
|
||||
private static final long _latestTime;
|
||||
private static final long YEARS_25 = 25L*365*24*60*60*1000;
|
||||
/** update this periodically */
|
||||
private static final String EARLIEST = "2017-10-11 12:00:00 UTC";
|
||||
private static final String EARLIEST = "2018-04-17 12:00:00 UTC";
|
||||
// fallback if parse fails ticket #1976
|
||||
// date -d 201x-xx-xx +%s
|
||||
private static final long EARLIEST_LONG = 1507694400 * 1000L;
|
||||
private static final long EARLIEST_LONG = 1523937600 * 1000L;
|
||||
|
||||
static {
|
||||
// this is the standard format of build.timestamp as set in the top-level build.xml
|
||||
@ -146,7 +146,6 @@ public class BuildTime {
|
||||
}
|
||||
}
|
||||
|
||||
/****
|
||||
public static void main(String[] args) {
|
||||
long date = getEarliestTime();
|
||||
System.out.println("Earliest date: " + new Date(date));
|
||||
@ -159,5 +158,4 @@ public class BuildTime {
|
||||
date = getLatestTime();
|
||||
System.out.println("Latest date: " + new Date(date));
|
||||
}
|
||||
****/
|
||||
}
|
||||
|
@ -29,6 +29,7 @@ public class CommandLine {
|
||||
"net.i2p.data.Base32",
|
||||
"net.i2p.data.Base64",
|
||||
"net.i2p.data.PrivateKeyFile",
|
||||
"net.i2p.time.BuildTime",
|
||||
"net.i2p.util.Addresses",
|
||||
"net.i2p.util.ConvertToHash",
|
||||
"net.i2p.util.EepGet",
|
||||
|
Reference in New Issue
Block a user