amélioration + correction calcul dates

This commit is contained in:
Jean-Christophe Engel 2024-12-27 20:46:53 +01:00
parent a1bf1c485c
commit 3738ea0721
3 changed files with 33 additions and 32 deletions

13
_next_year.html Normal file
View file

@ -0,0 +1,13 @@
{{* -*- brindille -*- *}}
{{*
Rend une date située un an après la date paramètre
paramètres :
- date
résultat : date_amort
*}}
{{:assign jour=$date|date:"d"}}
{{:assign mois=$date|date:"m"}}
{{:assign annee=$date|date:"Y"}}
{{:assign annee="%d+1"|math:$annee}}
{{:assign date_amort="%s/%s/%s"|args:$jour:$mois:$annee}}