Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
Mustache helper that will convert a timestamp to a date string. More...
Public Member Functions | |
transform ($args, Mustache_LambdaHelper $helper) | |
Read a timestamp and format from the string. | |
Mustache helper that will convert a timestamp to a date string.
core\output\mustache_user_date_helper::transform | ( | $args, | |
Mustache_LambdaHelper | $helper ) |
Read a timestamp and format from the string.
{{userdate}}1487655635, Y m d{{/userdate}}
There is a list of formats in lang/en/langconfig.php that can be used as the date format.
Both args are required. The timestamp must come first.
string | $args | The text to parse for arguments. |
Mustache_LambdaHelper | $helper | Used to render nested mustache variables. |
string |