java.time.Instant .
When git needs to parse strings specified by the user this parser can be
used. One example is the parsing of the config parameter gc.pruneexpire. The
parser can handle only subset of what native gits approxidate parser
understands.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static final Map |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static LocalDateTime | Returns: the parsedjava.the string to be parsed dateStr)Parses a string into a |
| pack-priv static LocalDateTime | |
| public static Instant | Returns: the parsedjava.the string to be parsed dateStr)Parses a string into a |
| private static LocalDateTime | |
| private static LocalDateTime |
| formatCache | back to summary |
|---|---|
| private static final Map<GitTimeParser. | |
| GitTimeParser | back to summary |
|---|---|
| private GitTimeParser() | |
| parse | back to summary |
|---|---|
| public static LocalDateTime parse(String dateStr) throws ParseException Parses a string into a
| |
| parse | back to summary |
|---|---|
| pack-priv static LocalDateTime parse(String dateStr, LocalDateTime now) throws ParseException | |
| parseInstant | back to summary |
|---|---|
| public static Instant parseInstant(String dateStr) throws ParseException Parses a string into a
| |
| parseRelative | back to summary |
|---|---|
private static LocalDateTime parseRelative(String dateStr, LocalDateTime now)
| |
| parseSimple | back to summary |
|---|---|
| private static LocalDateTime parseSimple(String dateStr, GitTimeParser. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final GitTimeParser. | |
| private final String | |
| public static final GitTimeParser. | |
| public static final GitTimeParser. | |
| public static final GitTimeParser. | |
| public static final GitTimeParser. | |
| public static final GitTimeParser. | |
| public static final GitTimeParser. | |
| public static final GitTimeParser. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static GitTimeParser. | |
| public static GitTimeParser. |
| DEFAULT | back to summary |
|---|---|
| public static final GitTimeParser. | |
| formatStr | back to summary |
|---|---|
| private final String formatStr | |
| ISO | back to summary |
|---|---|
| public static final GitTimeParser. | |
| LOCAL | back to summary |
|---|---|
| public static final GitTimeParser. | |
| RFC | back to summary |
|---|---|
| public static final GitTimeParser. | |
| SHORT | back to summary |
|---|---|
| public static final GitTimeParser. | |
| SHORT_WITH_DOTS | back to summary |
|---|---|
| public static final GitTimeParser. | |
| SHORT_WITH_DOTS_REVERSE | back to summary |
|---|---|
| public static final GitTimeParser. | |
| SHORT_WITH_SLASH | back to summary |
|---|---|
| public static final GitTimeParser. | |
| ParseableSimpleDateFormat | back to summary |
|---|---|
| private ParseableSimpleDateFormat(String formatStr) | |
| valueOf | back to summary |
|---|---|
| public static GitTimeParser. | |
| values | back to summary |
|---|---|
| public static GitTimeParser. | |