returns a readable last change/edit date
@return string|null
503803
public function LastChange()
    {
        $today = new \DateTime(); // This object represents current date/time
        $today->setTime(0, 0, 0); // reset time part, to prevent partial comparison

        $dateTime = \DateTime::createFromFormat('Y-m-d H:i:s', $this->Changed);
        if (!($dateTime instanceof \DateTime)) {
            return '---';
        }

        $todayTime = $dateTime;
        $todayTime->setTime(0, 0, 0); // reset time part, to prevent partial comparison

        $diff = $today->diff($todayTime);
        $diffDays = (integer) $diff->format('%R%a'); // Extract days count in interval

        switch ($diffDays) {
            case 0:
                return _t('ContentElement.today', 'Today') . ' ' . date('H:i', strtotime($this->Changed));
                break;
            case -1:
                return _t('ContentElement.yesterday', 'Yesterday') . ' ' . date('H:i', strtotime($this->Changed));
                break;
            default:
                return date('j. M H:i', strtotime($this->Changed));
        }
    }
864747
public function getLastCommitDate()
    {
        $process = new Process('git log -n1 --pretty=%ci HEAD', $this->directory);

        if ($process->run() != 0) {
            throw new \RuntimeException('Can\'t run git log. You must ensure that git binary is available.');
        }

        $date = new \DateTime(trim($process->getOutput()));
        $date->setTimezone(new \DateTimeZone('UTC'));

        return $date->format('Y-m-d H:i:s');
    }
960154
public function getOrderDate()
    {
        if ( empty( $this->oxorder__oxorderdate->value ) ) {
            return '';
        }

        return date( 'Y-m-d', strtotime( $this->oxorder__oxorderdate->value ) );
    }
701655
public function getFormattedExpirationDate()
    {
        $date = $this->model->getExpirationDate();

        if ($date instanceof Carbon) {
            $isFuture   = $date->isFuture();
            $translated = $isFuture ? $date->diffForHumans(null, true) : $date->diffForHumans();

            if ($isFuture) {
                $translated = 'in ' . $translated;
            }

            return $translated;
        }

        return '---';
    }
392972
public function getCreatedDate()
    {
        $rtn    = $this->data['created_date'];

        if (!empty($rtn)) {
            $rtn    = new \DateTime($rtn);
        }
        
        return $rtn;
    }
1091817
public static function getLastRunTime()
    {
        $timestamp = Option::get(self::LAST_RUN_TIME_OPTION_NAME);
        return $timestamp === false ? false : Date::factory((int)$timestamp);
    }
1331243
public function getLastUnNamedParam()
    {
        foreach (array_reverse($this->_parameters) as $key => $value) {
            if (is_numeric($key)) {
                return $value;
            }
        }

        return false;
    }
696345
public function getLastModified()
	{
		$mtime = 0;
		
		foreach($this->modules as $module)
		{
			$mtime = max($mtime, filemtime((new \ReflectionClass(get_class($module)))->getFileName()));
		}
		
		return $mtime;
	}
714755
def _get_last_modification_date(url):
    """"""
    request = requests.head(url)
    date_string = request.headers["last-modified"]
    parsed = time.strptime(date_string, "%a, %d %b %Y %H:%M:%S %Z")
    return datetime(*(parsed)[0:6])
53300
public function getLastChanged(): \DateTime
    {
        \clearstatcache();
        if (false === $ctime = \filectime($this->filename)) {
            throw new TimeCanNotBeReadException('Time of last change can not be read.');
        }
        return (new \DateTime())->setTimestamp($ctime);
    }
1110258
public function getLastPublishedString($format = \DateTime::ISO8601)
    {
        $date = $this->getLastPublished();

        if (empty($date)) {
            return null;
        }

        return $date->format($format);
    }
728699
public function getDateModified()
    {
        global $wpdb;
        return $wpdb->get_var($wpdb->prepare('SELECT post_modified FROM ' . $wpdb->prefix . 'posts WHERE ID = %d',
            $this->ID));
    }
136341
public function lastEarnedDate() : \DateTime
    {
        return new \DateTime(
            $this->comparing() ?
            $this->group->comparedUser->lastUpdateDate :
            $this->group->fromUser->lastUpdateDate
        );
    }
464713
public function lastModified($modified = null)
    {
        if ($modified && $modified > $this->last_modified) {
            $this->last_modified = $modified;
        }

        return $this->last_modified;
    }
449343
public function currentUtcDatetime()
    {
        if ($this->timeFormat === static::$timeFormatDatetime) {
            return gmdate('Y-m-d H:i:s');
        }
        if ($this->timeFormat === static::$timeFormatTimestamp) {
            return time();
        }
        return null;
    }
1274452
public function getModifiedDate($item)
    {
        if (!isset($item->pagemap)) {
            return null;
        }

        $meta = $item->pagemap->metatags[0];
        $dateMod = null;

        if (isset($meta->moddate)) {
            $dateMod = $meta->moddate;
        } elseif (isset($meta->pubdate)) {
            $dateMod = $meta->pubdate;
        } elseif (isset($meta->{'last-modified'})) {
            $dateMod = $meta->{'last-modified'};
        }

        $dateMod = $this->convertDate($dateMod);

        return $dateMod;
    }
113088
public function getLastReviewDate()
    {
        if ($this->reviewCollection->getSize()) {
            $this->reviewCollection->getSelect()->limit(1);
            $createdAt = $this->reviewCollection
                ->getFirstItem()
                ->getCreatedAt();
            return $createdAt;
        }

        return '';
    }