Returns whether or not a date is specified in a relative fashion. A date is specified in a relative fashion if it ends in "-ago", e.g. 1d-ago is the same as 24h-ago. @param value The value to parse @return true if the parameter is passed and is a relative date. Note the m
(final String value)
| 303 | * @throws NullPointerException if the value is null |
| 304 | */ |
| 305 | public static boolean isRelativeDate(final String value) { |
| 306 | return value.toLowerCase().endsWith("-ago"); |
| 307 | } |
| 308 | |
| 309 | /** |
| 310 | * Applies the given timezone to the given date format. |
no outgoing calls