Get course completions from the last x time frame

Get course completions from the last x time frame

by Plankton Isyum -
Number of replies: 0
I'm can successfully get a specific course completion for a user+course using core_completion_get_course_completion_status.

However, I want to do something more like "get all course completions where the datetime completed is in the last 24hrs" or similar. I can't find an specific function/example of how to do this.

Can anyone point me in the right direction for how to do this?
Average of ratings: -