(a)
Whoever engages in conduct outside the United States that would constitute an offense punishable by imprisonment for more than 1 year if the conduct had been engaged in within the special maritime and territorial jurisdiction of the United States—
(1)
while employed by or accompanying the Armed Forces outside the United States; or
(2)
while a member of the Armed Forces subject to chapter
47 of title
10 (the Uniform Code of Military Justice),
shall be punished as provided for that offense.