Simplification calcul nombre jours
This commit is contained in:
parent
1aa1e65b61
commit
dec6c8d676
@ -9,9 +9,4 @@
|
||||
|
||||
{{:assign ts_debut=$date_debut|strtotime}}
|
||||
{{:assign ts_fin=$date_fin|strtotime}}
|
||||
|
||||
{{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}}
|
||||
{{:assign nbjours="1+abs(%d-%d)/(60*60*24)"|math:$ts_fin:$ts_debut}}
|
||||
|
Loading…
Reference in New Issue
Block a user