标签: symfony datetime
我正试着设定当月。我试过了:
auto v = std::vector<double>(TSF_MAD, TSF_MAD + DatasetsCount);
错误:在布尔值
答案 0 :(得分:2)
试试这样:
public function __construct() { $date = new \DateTime(); $this->actMonth = $date->format('M'); }