second() 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/second/
public second ( mixed | self $expression )
$expression mixed | self
示例#1
0
 /**
  * Returns the second portion of a date as a number between 0 and 59, but
  * can be 60 to account for leap seconds.
  *
  * The argument can be any expression as long as it resolves to a date.
  *
  * @see http://docs.mongodb.org/manual/reference/operator/aggregation/second/
  * @see Expr::second
  * @param mixed|Expr $expression
  * @return self
  */
 public function second($expression)
 {
     $this->expr->second($expression);
     return $this;
 }