Package org.ametys.core.util.date
Class AdaptableDateParser
java.lang.Object
org.ametys.core.util.date.AdaptableDateParser
Class for parsing a 
See documentation of
String and converting it to an AdaptableDate.
 See documentation of
parse(java.lang.String) method.- 
Method Summary
Modifier and TypeMethodDescriptionstatic final AdaptableDateParses the givenStringas anAdaptableDate
It accepts the following syntax:2019-01-01T09:30:00+01:00to have astaticdate (based on theDateTimeFormatter.ISO_DATE_TIMEformat)$currentto have thecurrentdate and time$todayto have thecurrentdate at 00:00$ago$2$Minutesto have a date in thepast, based on the current date and time$in$3$Weeksto have a date in thefuture, based on the current date and time$ago_fullday$2$Daysto have a date in thepast, based on the current date at 00:00$in_fullday$3$Weeksto have a date in thefuture, based on the current date at 00:00 
- 
Method Details
- 
parse
Parses the givenStringas anAdaptableDate
It accepts the following syntax:2019-01-01T09:30:00+01:00to have astaticdate (based on theDateTimeFormatter.ISO_DATE_TIMEformat)$currentto have thecurrentdate and time$todayto have thecurrentdate at 00:00$ago$2$Minutesto have a date in thepast, based on the current date and time$in$3$Weeksto have a date in thefuture, based on the current date and time$ago_fullday$2$Daysto have a date in thepast, based on the current date at 00:00$in_fullday$3$Weeksto have a date in thefuture, based on the current date at 00:00
- Parameters:
 value- The string value to parse- Returns:
 - The 
AdaptableDate - Throws:
 IllegalArgumentException- if the string value cannot be parsed as anAdaptableDate
 
 -