Gets the default clock.

@return Clock
198519
public static function get() : Clock
    {
        if (self::$clock === null) {
            self::$clock = new SystemClock();
        }

        return self::$clock;
    }
30515
public function currentDatetime()
    {
        if ($this->timeFormat === static::$timeFormatDatetime) {
            return date('Y-m-d H:i:s');
        }
        if ($this->timeFormat === static::$timeFormatTimestamp) {
            return time();
        }
        return null;
    }
936197
function getUuid() {
    return $this->time_low . '-' . $this->time_mid . '-' . $this->time_hi_version . '-' . $this->clock_seq_hi_variant . $this->clock_seq_low . '-' . $this->node;
  }
1314056
public function getRescheduledTime()
    {
        $currentTime = $this->getTime();

        // Add one day
        $rescheduledTime = mktime(date('H', $currentTime),
            date('i', $currentTime),
            date('s', $currentTime),
            date('n', $currentTime),
            date('j', $currentTime) + 1,
            date('Y', $currentTime)
        );

        // Adjusts the scheduled hour
        $rescheduledTime = $this->adjustHour($rescheduledTime);
        $rescheduledTime = $this->adjustTimezone($rescheduledTime);

        return $rescheduledTime;
    }
659966
public static TimeZone getDefault() {
        // Android patch (http://b/30979219) start.
        // Avoid race condition by copying defaultZone to a local variable.
        TimeZone result = defaultZone;
        if (result == null) {
            // Android patch (http://b/30937209) start.
            // Avoid a deadlock by always acquiring monitors in order (1) java.util.TimeZone.class
            // then (2) icu.util.TimeZone.class and not (2) then (1).
            // Without the synchronized here there is a possible deadlock between threads calling
            // this method and other threads calling methods on java.util.TimeZone. e.g.
            // java.util.TimeZone.setDefault() calls back into
            // icu.util.TimeZone.clearCachedDefault() so always acquires them in order (1) then (2).
            synchronized (java.util.TimeZone.class) {
                synchronized (TimeZone.class) {
                    result = defaultZone;
                    if (result == null) {
                        if (TZ_IMPL == TIMEZONE_JDK) {
                            result = new JavaTimeZone();
                        } else {
                            java.util.TimeZone temp = java.util.TimeZone.getDefault();
                            result = getFrozenTimeZone(temp.getID());
                        }
                        defaultZone = result;
                    }
                }
            }
            // Android patch (http://b/30937209) end.
        }
        return result.cloneAsThawed();
        // Android patch (http://b/30979219) end.
    }
631431
public function getEndTime()
    {
        $count = \count($this->periods);

        return $count ? $this->periods[$count - 1]->getEndTime() : 0;
    }
1279037
public Object getDefault()
    {
        Object objDefault = super.getDefault();
        if (objDefault == null)
            objDefault = FINISH_START;
        return objDefault;
    }
799089
private function getTimezone()
    {
        if (!$this->timezone) {
            $this->timezone = $this->coreParametersHelper->getParameter(
                'default_timezone'
            );
        }

        return $this->timezone;
    }
935020
public function get()
    {
        $date = \DateTime::createFromFormat(static::$mysql_format, $this->seed);
        if ($date && $date->getTimestamp()) {
            return $date;
        }
        return new \DateTime($this->defaultValue);
    }
1325631
public TimeZone getTimeZone() {
        if ( this.cronEx != null ) {
            return this.cronEx.getTimeZone();
        }

        if ( this.timeZone == null ) {
            this.timeZone = TimeZone.getDefault();
        }
        return this.timeZone;
    }
105089
private function getDefaultLock()
    {
        if ($this->isSysvIPCLoaded()) {
            return new SemaphoreLock(
                $this->getSysvKey(crc32($this->cacheKey))
            );
        }

        return new FlockLock($this->cacheKey);
    }
301235
public function getFinalFireTime()
    {
        if ($this->getEndTime()) {
            $resultTime = clone $this->getEndTime();
            $resultTime->add(new \DateInterval('PT1S'));

            $resultTime = $this->getTimeBefore($resultTime);
        } else {
            $resultTime = null;
        }

        if ($resultTime && $this->getStartTime() && $resultTime < $this->getStartTime()) {
            return null;
        }

        return $resultTime;
    }
533885
public function getTimezone()
    {
        if(!$timezone = $this->getUser()->getTimezone())
        {
            if($timezones = $this->getTimezones()) {
                $timezone = $timezones[0];
            } else {
                $timezone = $this->getConfig()->timezone;
            }
        }

        return $timezone;
    }
795606
public static function FindClockDiff() {
			$time = time();
			$pong = self::Ping();

			return ( $time - strtotime( $pong->timestamp ) );
		}
242322
public function getDefaultTimeout()
	{
		// lazy load the default timeout from the ini settings
		if ($this->_defaultTimeout === false)
		{
			$this->_defaultTimeout = (int) ini_get('default_socket_timeout');

			// double check we didn't get 0 for a timeout
			if ($this->_defaultTimeout <= 0)
			{
				$this->_defaultTimeout = 60;
			}
		}
		
		return $this->_defaultTimeout;
	}
400335
public static function getParsingClock(?Clock $clock = null)
    {
        if (func_num_args()) {
            self::$clock = $clock;
        }

        if (!self::$clock) {
            self::$clock = new Clock('now', 'UTC');
        }

        return self::$clock;
    }
25492
public function getStarttime()
    {
        $starttime = $this->getExecutedAt();
        if (empty($starttime) || $starttime == '0000-00-00 00:00:00') {
            $starttime = $this->getScheduledAt();
        }
        return $starttime;
    }