5152535455565758
return(YearMonth.parse(s, formatter)); } catch (IllegalArgumentException e) { //Thrown when parsing fails throw new PreferencesException("Could not parse date '" + s + "'.", e); } }
4647484950515253
return(DateTime.parse(s, formatter)); } catch (IllegalArgumentException e) { //Thrown when parsing fails throw new PreferencesException("Could not parse date '" + s + "'.", e); } }
3233343536373839
return(DateTimeZone.forID(s)); } catch (IllegalArgumentException e) { //Thrown when parsing fails throw new PreferencesException("Invalid timezone ID '" + s + "'.", e); } }
return(MutableDateTime.parse(s, formatter)); } catch (IllegalArgumentException e) { //Thrown when parsing fails throw new PreferencesException("Could not parse date '" + s + "'.", e); } }
return(Interval.parse(s)); } catch (IllegalArgumentException e) { //Thrown when parsing fails throw new PreferencesException("Could not parse interval '" + s + "'.", e); } }
4849505152535455
return(LocalDate.parse(s, formatter)); } catch (IllegalArgumentException e) { //Thrown when parsing fails throw new PreferencesException("Could not parse date '" + s + "'.", e); } }
return(Period.parse(s, formatter)); } catch (IllegalArgumentException e) { //Thrown when parsing fails throw new PreferencesException("Could not parse period '" + s + "'.", e); } }
return(Instant.parse(s, formatter)); } catch (IllegalArgumentException e) { //Thrown when parsing fails throw new PreferencesException("Could not parse date '" + s + "'.", e); } }
return(MonthDay.parse(s, formatter)); } catch (IllegalArgumentException e) { //Thrown when parsing fails throw new PreferencesException("Could not parse date '" + s + "'.", e); } }
return(MutablePeriod.parse(s, formatter)); } catch (IllegalArgumentException e) { //Thrown when parsing fails throw new PreferencesException("Could not parse period '" + s + "'.", e); } }