Had a conversation today with a user who wanted to be able to apply a filter like the following:
SELECT * WHERE time < NOW() - "5 minutes"
It would be handy to have a timestamp type and a handful of time-related functions. Off the top of my head:
- NOW()
- ADD / SUBTRACT
- MINUTE / HOUR / DAY / DAY_OF_WEEK / MONTH / YEAR
- LESS-THAN / GREATER-THAN
Had a conversation today with a user who wanted to be able to apply a filter like the following:
SELECT * WHERE time < NOW() - "5 minutes"It would be handy to have a timestamp type and a handful of time-related functions. Off the top of my head: