Any person subject to this part who:
shall be punished, if the offense is committed in time of war, by confinement of not more than five years or such other punishment as a court-martial may direct. If the offense is committed at any other time, the person shall be punished as a court-martial may direct.
51 Pa.C.S. § 6014