Инструменты пользователя

Инструменты сайта


programming:php:datetime

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Следующая версия
Предыдущая версия
programming:php:datetime [2018/06/09 16:32] – создано arturprogramming:php:datetime [2018/06/09 16:32] (текущий) artur
Строка 1: Строка 1:
 ====== DateTime ====== ====== DateTime ======
  
-<code>+<code php> 
 +<?
 $endDate->setTime(23, 59, 59); $endDate->setTime(23, 59, 59);
 $startDate = (clone $endDate)->modify('-10 days')->setTime(0, 0, 0); $startDate = (clone $endDate)->modify('-10 days')->setTime(0, 0, 0);
  
-    public function filterPaymentDatePeriod(QueryBuilder $qb, \DateTime $startDate, \DateTime $endDate)+    function filterPaymentDatePeriod(QueryBuilder $qb, \DateTime $startDate, \DateTime $endDate)
     {     {
         $qb->andWhere('AccountTransaction.paymentDate          $qb->andWhere('AccountTransaction.paymentDate 
Строка 13: Строка 14:
         return $this;         return $this;
     }     }
 +    ?>
 </code> </code>
  
programming/php/datetime.1528551130.txt.gz · Последнее изменение: 2018/06/09 16:32 — artur

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki