ArcheTwigDateExtension
extends AbstractExtension
in package
Table of Contents
Methods
- getFilters() : mixed
- getName() : mixed
- Gets a unique identifier for this Twig extension.
- checkDateTimeValue() : mixed
- checkYearIsMoreThanFourDigit() : bool
- notNormalDate() : string
- Return the befrore christ dates where we have 5 digit years numbers
- returnFormattedDate() : string
- Return the normal 4 digit year dates
Methods
getFilters()
public
getFilters() : mixed
getName()
Gets a unique identifier for this Twig extension.
public
getName() : mixed
checkDateTimeValue()
private
checkDateTimeValue(mixed $value) : mixed
Parameters
- $value : mixed
checkYearIsMoreThanFourDigit()
private
checkYearIsMoreThanFourDigit(mixed $value) : bool
Parameters
- $value : mixed
Return values
boolnotNormalDate()
Return the befrore christ dates where we have 5 digit years numbers
private
notNormalDate(type $value, mixed $lang, mixed $dateformat) : string
Parameters
- $value : type
- $lang : mixed
- $dateformat : mixed
Return values
stringreturnFormattedDate()
Return the normal 4 digit year dates
private
returnFormattedDate(type $dateformat, type $value, type $lang) : string
Parameters
- $dateformat : type
- $value : type
- $lang : type