@Override
 public void exitDateOperand(@NotNull DateOperandContext ctx) {
   String dateString = ctx.DATE_STRING().getText();
   dateString = dateString.substring(1, dateString.length() - 1);
   operandQueue.addLast(new DateOperand(Instant.parse(dateString, DATE_FORMATTER)));
 }
 private void roundTripRfc339(String timestamp) {
   assertEquals(Instant.parse(timestamp).getMillis(), parse(timestamp));
 }
 private void truncatedRfc339(String timestamp, String truncatedTimestmap) {
   assertEquals(Instant.parse(truncatedTimestmap).getMillis(), parse(timestamp));
 }
Beispiel #4
0
 public Instant getDate() {
   return date == null ? null : Instant.parse(date, DATE_FORMAT);
 }