Returns the end of the day of the current timestamp in UTC. For example,
if the current timestamp is '2007-07-24 14:03:24' in UTC, the result will
be '2007-07-24 23:59:59'.
public getDateEndUTC ( ) : string | ||
Résultat | string |
protected static function determineIfArchivePermanent(Date $dateEnd) { $now = time(); $endTimestampUTC = strtotime($dateEnd->getDateEndUTC()); if ($endTimestampUTC <= $now) { // - if the period we are looking for is finished, we look for a ts_archived that // is greater than the last day of the archive return $endTimestampUTC; } return false; }
/** * Returns general bind parameters for all log aggregation queries. This includes the datetime * start of entities, datetime end of entities and IDs of all sites. * * @return array */ protected function getGeneralQueryBindParams() { $bind = array($this->dateStart->getDateStartUTC(), $this->dateEnd->getDateEndUTC()); $bind = array_merge($bind, $this->sites); return $bind; }
protected function getBindDatetimeSite() { return array($this->dateStart->getDateStartUTC(), $this->dateEnd->getDateEndUTC(), $this->site->getId()); }