1
In MYSQL, I know I can return a difference between dates through the function DATE_DIFF
.
example:
SELECT * FROM table WHERE DATEDIFF(NOW(), created) <= ?
However, I need that in this DATEDIFF
the difference in day converted to hours is returned. Because I need to compare this difference to know if a certain deadline has already expired (and that deadline is in hours, not in days).
How can I get the value in hours of one DATEDIFF
in MYSQL?
Only the information needed to use the
HOUR(TIMEDIFF())
together :D– Wallace Maxters
Already edited @Wallacemaxters! 1111
– rray
Sorry to cancel, but @Bacco pointed out a problem in doing it the last way :|
– Wallace Maxters