Skip to content

Instantly share code, notes, and snippets.

@bystrano
Last active December 11, 2015 20:18
Show Gist options
  • Save bystrano/4654069 to your computer and use it in GitHub Desktop.
Save bystrano/4654069 to your computer and use it in GitHub Desktop.
Afficher les dates d'un événement en tenant compte de tout…
[(#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