Package com.jcabi.github
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:
- Schema
-
-
Field Summary
Fields Modifier and Type Field Description static String
FORMAT_ISO
Pattern to present day in ISO-8601.static TimeZone
TIMEZONE
The time zone we're in.
-
-
-
Field Detail
-
FORMAT_ISO
public static final String FORMAT_ISO
Pattern to present day in ISO-8601.- See Also:
- Constant Field Values
-
TIMEZONE
public static final TimeZone TIMEZONE
The time zone we're in.
-
-
Constructor Detail
-
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
-
-