loop-agnostic wrapper for get_the_modified_time