BuildTime: Update, add to cmd line tools

This commit is contained in:
zzz
2018-04-17 13:28:47 +00:00
parent d02b71a39e
commit 1ba7fb9621
2 changed files with 3 additions and 4 deletions

View File

@ -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));
}
****/
}

View File

@ -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",