net.i2p.time

## Class BuildTime

- java.lang.Object
- - net.i2p.time.BuildTime

-     public class BuildTime
      extends Object

  Get the build date as set in i2p.jar, and reasonable min and max values for the current time, to be used as sanity checks. Idea taken from Chrome, which assumes any clock more than 2 days before or 1 year after the build date is bad. Not maintained as a public API, not for use by plugins or applications.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static long` | `getBuildTime()` Get the build date for i2p.jar.
    `static long` | `getEarliestTime()` Get the earliest it could possibly be right now.
    `static long` | `getLatestTime()` Get the latest it could possibly be right now.
    `static void` | `main(String[] args)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getBuildTime

          public static long getBuildTime()

      Get the build date for i2p.jar.
      Returns:
        the earliest possible time if actual build date is unknown

    - #### getEarliestTime

          public static long getEarliestTime()

      Get the earliest it could possibly be right now. Latest of the build time minus a day, or a hardcoded time.
      Returns:
        the time

    - #### getLatestTime

          public static long getLatestTime()

      Get the latest it could possibly be right now. Hardcoded.
      Returns:
        the time

    - #### main

          public static void main(String[] args)