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 AeonDateTime
object into string.aeon_time_format(Time $time, string $format = null) : string
- formats AeonTime
object into stringaeon_day_format(Day $day, string $format = null) : string
- formats AeonDay
object into stringaeon_interval(string $interval) : Interval
- convert string intoInterval
objectaeon_in_seconds_precise(TimeUnit $timeUnit) : string
- converTimeUnit
into stringaeon_in_seconds(TimeUnit $timeUnit) : int
aeon_second(int $seconds) : TimeUnit
aeon_minute(int $minutes) : TimeUnit
aeon_hour(int $hours) : TimeUnit
aeon_day(int $days) : TimeUnit
Functions
aeon_now(string $timezone = null) : DateTime
- creates new instance of AeonDateTime
from current time.aeon_current_time() : Time
aeon_current_day() : Day
aeon_current_month() : Month
aeon_current_year() : Year
aeon_interval_left_open() : Interval
aeon_interval_right_open() : Interval
aeon_interval_closed() : Interval
aeon_interval_open() : Interval