Unfortunately, there is no 'Real-Time' information stored in the database, only 'relative' (either to now or to the last database update).
A quick 101 on the
lastplayed tag, as used in the default Database config:
%format "fmt_lastplayed" "%06d%s - %s" lastplayed artist title %sort = "inverse" %limit = "99" %strip = "6"
This formatting string uses (but strips from view) the
lastplayed value to create a list of tracks in the order in which they were listened to.
It then inverts it, to display the most recent first.
It then limits it to 99 tracks
"Recently played tracks" -> title = "fmt_lastplayed" ? playcount > "0"
This database menu item then uses the formatting string defined above to choose the tracks, in this case going directly to the track title.
The conditional 'playcount > "0" ensures that tracks that have never been listened to are excluded.
This is necessary because the
lastplayed value for all non-listened-to tracks is zero and they can show up in the listing if not explicitly taken out.
So, to plainly answer your question, no, you can't specify by
actually how long ago you last listened to them, only
relatively how long ago compared to all the tracks you have listened to.