use of com.cronutils.model.Cron in project kylo by Teradata.
the class FeedOnTimeArrivalMetric method generateCronDescription.
private String generateCronDescription(String cronExp) {
CronDefinition quartzDef = CronDefinitionBuilder.instanceDefinitionFor(CronType.QUARTZ);
CronParser parser = new CronParser(quartzDef);
Cron c = parser.parse(cronExp);
return CronDescriptor.instance(Locale.US).describe(c);
}
Aggregations