The date helper.
Get format date.
echo Date::format($date, 'j.n.Y');
Get number of seconds in a minute, incrementing by a step.
$seconds = Date::seconds();
Get number of minutes in a hour, incrementing by a step.
$minutes = Date::minutes();
Get number of hours, incrementing by a step.
$hours = Date::hours();
Get number of months.
$months = Date::months();
Get number of days.
$days = Date::days();
Returns the number of days in the requested month
$days = daysInMonth(12, 2012);
Get number of years.
$years = Date::years();
Get current season name.
echo Date::season();
Get today date.
echo Date::today();
Get yesterday date.
echo Date::yesterday();
Get tomorrow date.
echo Date::tomorrow();
Converts a UNIX timestamp to DOS format.
$dos = Date::unix2dos($unix);
Converts a DOS timestamp to UNIX format.
$unix = Date::dos2unix($dos);
Get Time zones.
$timezones = timezones();