private static void setStartEndTime ( TriggerInfo dto , TriggerBuilder < org . quartz . Trigger > builder ) { if ( dto . getStartTime ( ) > - 1 ) builder . startAt ( new Date ( dto . getStartTime ( ) ) ) ; else builder . startNow ( ) ; if ( dto . getEndTime ( ) > - 1 ) builder . endAt ( new Date ( dto . getEndTime ( ) ) ) ; }
Helps to set start and end times