Simplification calcul nombre jours
This commit is contained in:
parent
1aa1e65b61
commit
dec6c8d676
1 changed files with 1 additions and 6 deletions
|
@ -9,9 +9,4 @@
|
||||||
|
|
||||||
{{:assign ts_debut=$date_debut|strtotime}}
|
{{:assign ts_debut=$date_debut|strtotime}}
|
||||||
{{:assign ts_fin=$date_fin|strtotime}}
|
{{:assign ts_fin=$date_fin|strtotime}}
|
||||||
|
{{:assign nbjours="1+abs(%d-%d)/(60*60*24)"|math:$ts_fin:$ts_debut}}
|
||||||
{{if $ts_debut <= $ts_fin}}
|
|
||||||
{{:assign nbjours="1+(%d-%d)/(60*60*24)"|math:$ts_fin:$ts_debut}}
|
|
||||||
{{else}}
|
|
||||||
{{:assign nbjours="1+(%d-%d)/(60*60*24)"|math:$ts_debut:$ts_fin}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue