A general or special court-martial convened for the trial of a person charged with committing an offense after the declaration of a war or national emergency and before the time when he or she is brought under the jurisdiction of the United States Uniform Code of Military Justice, 10 U.S.C. § 801 et seq., may, upon conviction, adjudge such punishment as may be appropriate except that it may not exceed that authorized for a similar offense by the United States Uniform Code of Military Justice.