public static boolean specificToDay ( String eventDate ) { boolean result = false ; if ( ! isEmpty ( eventDate ) ) { Interval eventDateInterval = extractInterval ( eventDate ) ; logger . debug ( eventDateInterval ) ; logger . debug ( eventDateInterval . toDuration ( ) ) ; if ( eventDateInterval . toDuration ( ) . getStandardDays ( ) < 1l ) { result = true ; } else if ( eventDateInterval . toDuration ( ) . getStandardDays ( ) == 1l && eventDateInterval . getStart ( ) . getDayOfYear ( ) == eventDateInterval . getEnd ( ) . getDayOfYear ( ) ) { result = true ; } } return result ; }
Test if an event date specifies a duration of one day or less .