getDateEndUTC() публичный Метод

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
Результат string
Пример #1
0
 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;
 }
Пример #2
0
 /**
  * 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;
 }
Пример #3
0
 protected function getBindDatetimeSite()
 {
     return array($this->dateStart->getDateStartUTC(), $this->dateEnd->getDateEndUTC(), $this->site->getId());
 }