Documentation
TIME
usage
<GET>
<TIME>[{refkeyword}{+/-}{number} {unitkeyword}]</TIME>
</GET>
paramètres
A string representing a date to compute
retourne
A date in the SQL format (YYYY-mm-DD HH:ii:ss)
refkeywords:
- now
- today
- this_week
- this_month
- this_year
unitkeywords:
- minute(s)
- hour(s)
- day(s)
- month(s)
- year(s)
exemples
<GET>
<TIME/>
</GET>
<GET>
<TIME>today</TIME>
</GET>
<GET>
<TIME>now+2 hours</TIME>
</GET>
<GET>
<TIME>today+2 days</TIME>
</GET>
<GET>
<TIME>this_year+1 week</TIME>
</GET>
<GET>
<TIME>this_month+3 months</TIME>
</GET>