predicate and new time api