Nuevo plugin Additionals 2.0.20

This commit is contained in:
Manuel Cillero 2019-06-16 12:53:09 +02:00
parent a2a901b71b
commit 93e1e28683
354 changed files with 40514 additions and 0 deletions

View file

@ -0,0 +1,58 @@
Date
----
.. function:: {{date([TYPE])}}
Display current date
:param string TYPE: current_date (default) current date
current_date_with_time current date with time
current_year current year
current_month current month
current_day current day
current_hour current hour
current_minute current minute
current_weekday current weekday
current_weeknumber current week number (1 - 52) The week starts with Monday
YYYY-MM-DD e.g. 2018-12-24, which will formated with Redmine date format
Scope
+++++
This macro works in all text fields with formatting support.
Examples
++++++++
Show current date.
.. code-block:: smarty
{{date}}
Show current date with time
.. code-block:: smarty
{{date(current_date_with_time)}}
Show current year
.. code-block:: smarty
{{date(current_year)}}
Show current week number
.. code-block:: smarty
{{date(current_weeknumber)}}
Show date 2018-12-24 in right format, which is specified in Redmine Settings, which shows e.g. 24.12.2018
.. code-block:: smarty
{{date(2018-12-24)}}