class TimerLogic implements RunnableService {

	public Timer setTimer(LocalDateTime timerTime) {
		int id = searchTimerId();
		Timer timer = new Timer(id, timerTime, null, true);
		this.timerStorage.save(timer);
		Runnable timerRunnable = createTimerRunnable(timer);
		ZonedDateTime with = this.environment.getCurrentDateTime().with(timer.getTimerTime());
		if (with.isBefore(this.environment.getCurrentDateTime())) {
			with = with.plusDays(1);
		}
		this.taskScheduler.schedule(timerRunnable, with.toInstant());
		return timer;
	}

}