Last active
December 11, 2015 20:18
-
-
Save bystrano/4654069 to your computer and use it in GitHub Desktop.
Afficher les dates d'un événement en tenant compte de tout…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[(#REM) même jour début et fin ] | |
[(#DATE_DEBUT|affdate{'d-m-Y'}|!={[(#DATE_FIN|affdate{'d-m-Y'})]}|oui) | |
[<span class="jour">(#DATE_DEBUT|affdate_jourcourt)</span>] | |
[(#HORAIRE|=={oui}|oui ) | |
<span class="horaire"> | |
[(#DATE_DEBUT|heures)h] | |
[(#DATE_DEBUT|minutes)] | |
</span> | |
] | |
[<span class="jour">(#DATE_FIN|affdate_jourcourt)</span>] | |
[(#HORAIRE|=={oui}|oui ) | |
<span class="horaire"> | |
[(#DATE_FIN|heures)h] | |
[(#DATE_FIN|minutes)] | |
</span> | |
] | |
] | |
[(#REM) début et fin à des jours différents ] | |
[(#DATE_DEBUT|affdate{'d-m-Y'}|=={[(#DATE_FIN|affdate{'d-m-Y'})]}|oui) | |
[<span class="jour">(#DATE_DEBUT|affdate_jourcourt)</span>] | |
[(#HORAIRE|=={oui}|oui ) | |
<span class="horaire"> | |
[(#DATE_DEBUT|heures)h] | |
[(#DATE_DEBUT|minutes)] - | |
[(#DATE_FIN|heures)h] | |
[(#DATE_FIN|minutes)] | |
</span> | |
] | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment