Linux server.kiran-academy.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
: 194.233.91.196 | : 216.73.216.216
Cant Read [ /etc/named.conf ]
7.4.32
finalho
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
local /
cwpsrv /
var /
services /
twig /
doc /
filters /
[ HOME SHELL ]
Name
Size
Permission
Action
abs.rst
247
B
-rw-r--r--
batch.rst
1013
B
-rw-r--r--
capitalize.rst
233
B
-rw-r--r--
convert_encoding.rst
634
B
-rw-r--r--
date.rst
2.53
KB
-rw-r--r--
date_modify.rst
547
B
-rw-r--r--
default.rst
858
B
-rw-r--r--
escape.rst
3.09
KB
-rw-r--r--
first.rst
443
B
-rw-r--r--
format.rst
392
B
-rw-r--r--
index.rst
402
B
-rw-r--r--
join.rst
429
B
-rw-r--r--
json_encode.rst
485
B
-rw-r--r--
keys.rst
219
B
-rw-r--r--
last.rst
436
B
-rw-r--r--
length.rst
584
B
-rw-r--r--
lower.rst
152
B
-rw-r--r--
merge.rst
1.33
KB
-rw-r--r--
nl2br.rst
358
B
-rw-r--r--
number_format.rst
1.13
KB
-rw-r--r--
raw.rst
1.18
KB
-rw-r--r--
replace.rst
420
B
-rw-r--r--
reverse.rst
989
B
-rw-r--r--
round.rst
784
B
-rw-r--r--
slice.rst
2.07
KB
-rw-r--r--
sort.rst
344
B
-rw-r--r--
split.rst
1.31
KB
-rw-r--r--
striptags.rst
594
B
-rw-r--r--
title.rst
255
B
-rw-r--r--
trim.rst
873
B
-rw-r--r--
upper.rst
152
B
-rw-r--r--
url_encode.rst
527
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : date.rst
``date`` ======== The ``date`` filter formats a date to a given format: .. code-block:: jinja {{ post.published_at|date("m/d/Y") }} The format specifier is the same as supported by `date`_, except when the filtered data is of type `DateInterval`_, when the format must conform to `DateInterval::format`_ instead. The ``date`` filter accepts strings (it must be in a format supported by the `strtotime`_ function), `DateTime`_ instances, or `DateInterval`_ instances. For instance, to display the current date, filter the word "now": .. code-block:: jinja {{ "now"|date("m/d/Y") }} To escape words and characters in the date format use ``\\`` in front of each character: .. code-block:: jinja {{ post.published_at|date("F jS \\a\\t g:ia") }} If the value passed to the ``date`` filter is ``null``, it will return the current date by default. If an empty string is desired instead of the current date, use a ternary operator: .. code-block:: jinja {{ post.published_at is empty ? "" : post.published_at|date("m/d/Y") }} If no format is provided, Twig will use the default one: ``F j, Y H:i``. This default can be easily changed by calling the ``setDateFormat()`` method on the ``core`` extension instance. The first argument is the default format for dates and the second one is the default format for date intervals: .. code-block:: php $twig = new Twig_Environment($loader); $twig->getExtension('Twig_Extension_Core')->setDateFormat('d/m/Y', '%d days'); Timezone -------- By default, the date is displayed by applying the default timezone (the one specified in php.ini or declared in Twig -- see below), but you can override it by explicitly specifying a timezone: .. code-block:: jinja {{ post.published_at|date("m/d/Y", "Europe/Paris") }} If the date is already a DateTime object, and if you want to keep its current timezone, pass ``false`` as the timezone value: .. code-block:: jinja {{ post.published_at|date("m/d/Y", false) }} The default timezone can also be set globally by calling ``setTimezone()``: .. code-block:: php $twig = new Twig_Environment($loader); $twig->getExtension('Twig_Extension_Core')->setTimezone('Europe/Paris'); Arguments --------- * ``format``: The date format * ``timezone``: The date timezone .. _`strtotime`: http://www.php.net/strtotime .. _`DateTime`: http://www.php.net/DateTime .. _`DateInterval`: http://www.php.net/DateInterval .. _`date`: http://www.php.net/date .. _`DateInterval::format`: http://www.php.net/DateInterval.format
Close