From 2c11d3e4f3012e6a24ef7d158a7375d9dd20330a Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Tue, 4 Feb 2025 14:52:50 +0100 Subject: [PATCH] ajout arrondi calcul date --- _calcul_dates.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/_calcul_dates.html b/_calcul_dates.html index 6ccc98b..6239b76 100644 --- a/_calcul_dates.html +++ b/_calcul_dates.html @@ -16,6 +16,4 @@ {{:assign nbjours="-1*%d"|math:$nbjours}} {{/if}} {{* pour simplifier : 360 jours par an *}} -{{if $nbjours > 360}} - {{:assign nbjours=360}} -{{/if}} +{{:assign nbjours="round(%f/365*360)"|math:$nbjours}}