amélioration + correction calcul dates
This commit is contained in:
parent
a1bf1c485c
commit
3738ea0721
3 changed files with 33 additions and 32 deletions
13
_next_year.html
Normal file
13
_next_year.html
Normal 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}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue