Prise en compte exercice de durée supérieure à un an
This commit is contained in:
parent
ea8d805dba
commit
5b8c869ba4
1 changed files with 2 additions and 5 deletions
|
@ -11,10 +11,7 @@
|
||||||
{{:assign ts_fin=$date_fin|strtotime}}
|
{{:assign ts_fin=$date_fin|strtotime}}
|
||||||
|
|
||||||
{{if $ts_debut <= $ts_fin}}
|
{{if $ts_debut <= $ts_fin}}
|
||||||
{{:assign nbjours="(%d-%d)/(60*60*24)"|math:$ts_fin:$ts_debut}}
|
{{:assign nbjours="1+(%d-%d)/(60*60*24)"|math:$ts_fin:$ts_debut}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{:assign nbjours="(%d-%d)/(60*60*24)"|math:$ts_debut:$ts_fin}}
|
{{:assign nbjours="1+(%d-%d)/(60*60*24)"|math:$ts_debut:$ts_fin}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{* pour simplifier : 360 jours par an *}}
|
|
||||||
{{:assign nbjours="round(%f/365*360)"|math:$nbjours}}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue