Check if a time is within a period
