hour() public method

The argument can be any expression as long as it resolves to a date.
See also: http://docs.mongodb.org/manual/reference/operator/aggregation/hour/
public hour ( mixed | self $expression )
$expression mixed | self
Exemplo n.º 1
0
 /**
  * Returns the hour portion of a date as a number between 0 and 23.
  *
  * The argument can be any expression as long as it resolves to a date.
  *
  * @see http://docs.mongodb.org/manual/reference/operator/aggregation/hour/
  * @see Expr::hour
  * @param mixed|Expr $expression
  * @return self
  */
 public function hour($expression)
 {
     $this->expr->hour($expression);
     return $this;
 }