NOT YET IMPLEMENTED: Returns the time before the given time that this <code>CronTrigger</code>
will fire.
969117
private Date getTimeBefore(Date endTime) {

    return (cronEx == null) ? null : cronEx.getTimeBefore(endTime);
  }
1050618
public String getStartTimecode()
	{
		final Element element = getElement("Time_code_of_first_frame", 0);

		if (element != null)
		{
			return element.getText();
		}
		else
		{
			return null;
		}
	}
896810
public Calendar getLastUpdateTime() {
        if (null != lastUpdateTime && lastUpdateTime.after(Calendar.getInstance())) {
            LOG.warn("Last update time newer than now {} for {}", lastUpdateTime, owner);
            return null; // Something's broken - we don't know
        }
        return lastUpdateTime;
    }
1280506
@Override
  public CalendarIntervalScheduleBuilder getScheduleBuilder ()
  {
    final CalendarIntervalScheduleBuilder cb = CalendarIntervalScheduleBuilder.calendarIntervalSchedule ()
                                                                              .withInterval (getRepeatInterval (),
                                                                                             getRepeatIntervalUnit ());

    switch (getMisfireInstruction ())
    {
      case MISFIRE_INSTRUCTION_DO_NOTHING:
        cb.withMisfireHandlingInstructionDoNothing ();
        break;
      case MISFIRE_INSTRUCTION_FIRE_ONCE_NOW:
        cb.withMisfireHandlingInstructionFireAndProceed ();
        break;
    }

    return cb;
  }
857626
@Override
  public IScheduleBuilder <IDailyTimeIntervalTrigger> getScheduleBuilder ()
  {

    final DailyTimeIntervalScheduleBuilder cb = DailyTimeIntervalScheduleBuilder.dailyTimeIntervalSchedule ()
                                                                                .withInterval (getRepeatInterval (),
                                                                                               getRepeatIntervalUnit ())
                                                                                .onDaysOfTheWeek (getDaysOfWeek ())
                                                                                .startingDailyAt (getStartTimeOfDay ())
                                                                                .endingDailyAt (getEndTimeOfDay ());

    switch (getMisfireInstruction ())
    {
      case MISFIRE_INSTRUCTION_DO_NOTHING:
        cb.withMisfireHandlingInstructionDoNothing ();
        break;
      case MISFIRE_INSTRUCTION_FIRE_ONCE_NOW:
        cb.withMisfireHandlingInstructionFireAndProceed ();
        break;
    }

    return cb;
  }
1029558
def get_datetimenow(self):
        
        value = timezone.datetime.utcnow()
        if settings.USE_TZ:
            value = timezone.localtime(
                timezone.make_aware(value, timezone.utc),
                timezone.get_default_timezone()
            )
        return value
826960
function() {
    var time = null;

    if (this.method === 'from now') {
      time = ago.fromNow(this.amount, this.unit);
    } else if (this.method === 'ago') {
      time = ago(this.amount, this.unit);
    } else {
      throw new Error('Invalid method: ' + this.method);
    }

    return new Date(time);
  }
257019
@Override
	public Date getScheduleTime() {
		if (nextScheduleTimeAdd < 0) {
			return null;
		}
		
		long current = System.currentTimeMillis();
		
		Date nextSchedule = new Date(current + nextScheduleTimeAdd);
		logger.debug("Next schedule for job {} is set to {}", this.getClass().getSimpleName(), nextSchedule);
		
		return nextSchedule;
	}
908492
protected Date getTimeAfter (final Date afterTime)
  {
    return (m_aCronEx == null) ? null : m_aCronEx.getTimeAfter (afterTime);
  }
890952
def _get_time_override(self):
        

        if callable(self.time_override):
            time_override = self.time_override()
        else:
            time_override = self.time_override

        if not isinstance(time_override, datetime_time):
            raise ValueError(
                'Invalid type. Must be a datetime.time instance.'
            )

        return time_override
908426
@Nonnull
    private Timer getTimer() {
        return timerReference.updateAndGet(timer -> timer == null ? new Timer(LogConfigurationTask.class.getSimpleName(), true) : timer);
    }
555772
protected ScheduledFuture<?> startTimer() {
        return getExecutorService().scheduleAtFixedRate(new Runnable() {
            @Override
            public void run() {
                endOfPeriod();
            }
        }, getPeriod(), getPeriod(), getUnit());
    }
1099880
public String getStartTime() {
    return events.isEmpty()
        ? "unknown"
        : isoDate.format(new Date(events.get(0).timestamp()));
  }
210219
@Override
  public Date getFinalFireTime ()
  {
    Date resultTime;
    if (getEndTime () != null)
    {
      resultTime = getTimeBefore (new Date (getEndTime ().getTime () + 1000l));
    }
    else
    {
      resultTime = (m_aCronEx == null) ? null : m_aCronEx.getFinalFireTime ();
    }

    if ((resultTime != null) && (getStartTime () != null) && (resultTime.before (getStartTime ())))
    {
      return null;
    }

    return resultTime;
  }
1092940
public String schedule(Trigger trigger, Runnable task) {
        ScheduledFuture<?> future = getCurrentScheduler().schedule(task, trigger);
        String id = Schedulers.getUUID();
        runningSchedullers.put(id, future);
        Schedulers.increaseNoOfRunningSchedullers();
        setCurrentScheduler(null);
        return id;
    }
1088772
def _past_datetime_from(self):
        
        prevDt = self.__localBefore(timezone.localtime(), dt.time.max,
                                    excludeCancellations=True,
                                    excludeExtraInfo=True)
        return prevDt
1272875
public static Timestamp now() {
    java.sql.Timestamp date = new java.sql.Timestamp(System.currentTimeMillis());
    return of(date);
  }