According to the doc, DATEADD() takes an int for the number of minutes/seconds/milliseconds/etc to be added to a timestamp:
This blows up quite quickly when using milliseconds, of course. Here a case where I'm subtracting 30 days:
from (select timestamp '2001-01-10 12:15:30.0' ts)
where dateadd('ms', -2592000000, ts) <= current_timestamp()
Now, obviously, I could use a different time unit, but I still think that it would be sensible to accept longs if milliseconds are accepted.
The issue was also reported on Stack Overflow by a jOOQ user:
Cheers,
Lukas