public function getFunctions()
{
return [new Twig_SimpleFunction('diff_in_months', function ($dateTime, $now = null) {
$dateTime = $this->toCarbon($dateTime);
if (!$now) {
$now = Carbon::now();
} else {
$now = $this->toCarbon($now);
}
return $now->diffInMonths($dateTime);
})];
}