Matcher matcher = RepositoryConfiguration.INITIAL_TIME_PATTERN.matcher(initialTimeExpression);
if (matcher.matches()) {
int hours = Integer.decode(matcher.group(1));
int mins = Integer.decode(matcher.group(2));
DateTimeFactory factory = runningState().context().getValueFactories().getDateFactory();
DateTime now = factory.create();
DateTime initialTime = factory.create(now.getYear(), now.getMonthOfYear(), now.getDayOfMonth(), hours, mins, 0, 0);
long delay = initialTime.getMilliseconds() - System.currentTimeMillis();
if (delay <= 0L) {
initialTime = initialTime.plusDays(1);
delay = initialTime.getMilliseconds() - System.currentTimeMillis();