(a) A unit, force, division, or command of the Texas military forces that is engaged in regular training on a day on which a primary, general, or special election for a state or federal office is held shall provide time off or arrange duty hours to permit all personnel to vote in the election.
(b) This section does not apply during war, invasion, insurrection, riot, or tumult, during imminent danger of one of those situations, or during annual active duty for training not exceeding 15 days.