Calendar Twig
Available versions:
Installation
composer require aeon-php/calendar-twig
Description
This library provides Aeon Twig extension.
Filters
aeon_datetime_format(DateTime $dateTime, string $format = null, string $timezone = null) : string- formats AeonDateTimeobject into string.aeon_time_format(Time $time, string $format = null) : string- formats AeonTimeobject into stringaeon_day_format(Day $day, string $format = null) : string- formats AeonDayobject into stringaeon_interval(string $interval) : Interval- convert string intoIntervalobjectaeon_in_seconds_precise(TimeUnit $timeUnit) : string- converTimeUnitinto stringaeon_in_seconds(TimeUnit $timeUnit) : intaeon_second(int $seconds) : TimeUnitaeon_minute(int $minutes) : TimeUnitaeon_hour(int $hours) : TimeUnitaeon_day(int $days) : TimeUnit
Functions
aeon_now(string $timezone = null) : DateTime- creates new instance of AeonDateTimefrom current time.aeon_current_time() : Timeaeon_current_day() : Dayaeon_current_month() : Monthaeon_current_year() : Yearaeon_interval_left_open() : Intervalaeon_interval_right_open() : Intervalaeon_interval_closed() : Intervalaeon_interval_open() : Interval