The query language in JIRA is able to use relative dates; using the issue properties like „updates“, „created“ etc. minus a numer of days.
project = X AND resolution = Unresolved and updated > -5d ORDER BY priority DESC, updated DESC
The notation „-5d“ is the shorthand for minus 5 days.