How long are moth balls toxic against yard pests?

Not long--they pretty much melt if it rains