def filter_time(c, posts, n):
    return filter(lambda(post): c(Post.post_time(post), n), posts)