That should work too, but it's good form to at least enclose your interval in ' marks like this:
select now()-interval '12 hour';
Since many databases, like postgresql would choke on the unquoted 12 hour part.
The cast ('12 hours' as interval) is the SQL 92/98 spec way of doing it, and should (may? 😉 prove more transportable.