コード例 #1
0
 private void setAttributesRecurring(String input) {
   DateTimeParser dateTimeParser = new DateTimeParser();
   removeWhiteSpaces(input);
   determineLengthOfInput();
   numToRecur = setNumToRecur();
   recurDuration = setRecurDuration();
   userCommand = removeNumAndDuration();
   determineLengthOfInput();
   setTime(userCommand);
   userCommand = dateTimeParser.removeTime(userCommand);
   determineLengthOfInput();
   isEnglishDate();
   setDate(numToUse, lengthOfInput);
   userCommand = dateTimeParser.removeDate(userCommand);
   determineLengthOfInput();
   setTaskName();
 }
コード例 #2
0
 public static LocalDate stringToLocalDate(String date) {
   DateTimeParser parser = new DateTimeParser();
   return parser.parseDate(date);
 }