By this answer I now know that most rockets have self-destruction, with SpaceX even an automated one.
And here I learned that the self-destruct is also tested.
But nowhere does it say when the self-destruct is armed, let alone how long it will stay armed.
When is the self-destruct on a missile armed?