month() 공개 메소드

The argument can be any expression as long as it resolves to a date.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/month/
public month ( mixed | self $expression )
$expression mixed | self
예제 #1
0
 /**
  * Returns the month of a date as a number between 1 and 12.
  *
  * The argument can be any expression as long as it resolves to a date.
  *
  * @see http://docs.mongodb.org/manual/reference/operator/aggregation/month/
  * @see Expr::month
  * @param mixed|Expr $expression
  * @return self
  */
 public function month($expression)
 {
     $this->expr->month($expression);
     return $this;
 }