Class GitHub.Time

java.lang.Object
com.jcabi.github.GitHub.Time
Enclosing interface:
GitHub

@Immutable public static final class GitHub.Time extends Object
Time in GitHub JSON.
Since:
0.2
See Also:
  • Field Details

    • FORMAT_ISO

      public static final String FORMAT_ISO
      Pattern to present day in ISO-8601.
      See Also:
    • TIMEZONE

      public static final TimeZone TIMEZONE
      The time zone we're in.
  • Constructor Details

    • Time

      public Time()
      Ctor.
    • Time

      public Time(String text) throws ParseException
      Ctor.
      Parameters:
      text - ISO date/time
      Throws:
      ParseException - If fails
    • Time

      public Time(Date date)
      Ctor.
      Parameters:
      date - Date to encapsulate
    • Time

      public Time(long millis)
      Ctor.
      Parameters:
      millis - Milliseconds
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • date

      public Date date()
      Get date.
      Returns:
      Date