diff --git a/onyx2/modules/templates/smarty/plugins/modifier.temps.php b/onyx2/modules/templates/smarty/plugins/modifier.temps.php new file mode 100644 index 0000000..4d827de --- /dev/null +++ b/onyx2/modules/templates/smarty/plugins/modifier.temps.php @@ -0,0 +1,29 @@ + + * Name: temps
+ * Date: Nov 15, 2020 + * Purpose: Affiche un temps à partir d'un nombre de seconde + * Example: {$nombre_de_secondes|temps} + * @version 1.0 + * @author Nigel + * @param int + * @return string + */ +function smarty_modifier_temps($secondes) +{ + return gmdate("H:i:s", $secondes); +} + +/* vim: set expandtab: */ + +?>