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 Aeon DateTime object into string.
  • aeon_time_format(Time $time, string $format = null) : string - formats Aeon Time object into string
  • aeon_day_format(Day $day, string $format = null) : string - formats Aeon Day object into string
  • aeon_interval(string $interval) : Interval - convert string into Interval object
  • aeon_in_seconds_precise(TimeUnit $timeUnit) : string - conver TimeUnit into string
  • aeon_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 Aeon DateTime 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