This pig script can filter records in a time period