Esempio n. 1
0
 public function escapeDateTime($value)
 {
     if (!$value instanceof \DateTime && !$value instanceof \DateTimeInterface) {
         $value = new Dibi\DateTime($value);
     }
     return $value->format($this->fmtDateTime);
 }
Esempio n. 2
0
 public function escapeDateTime($value)
 {
     if (!$value instanceof \DateTime && !$value instanceof \DateTimeInterface) {
         $value = new Dibi\DateTime($value);
     }
     return $value->format("'Y-m-d H:i:s'");
 }
Esempio n. 3
0
 public function escapeDateTime($value)
 {
     if (!$value instanceof \DateTime && !$value instanceof \DateTimeInterface) {
         $value = new Dibi\DateTime($value);
     }
     return $value->format($this->driverName === 'odbc' ? "#m/d/Y H:i:s#" : "'Y-m-d H:i:s'");
 }