Function to check if author has posted within the last x days

Is is possible to check whether an author has posted in the last X days?

I am currently using this function to determine whether he has posted at all.

$  args = array(     'post_type'  => 'your_custom_post_type',     'author'     => get_current_user_id(), );  $  wp_posts = get_posts($  args);  if (count($  wp_posts)) {     echo "Yes, the current user has 'your_custom_post_type' posts published!"; } else {     echo "No, the current user does not have 'your_custom_post_type' posts published."; }