For the purposes of determining the applicable criminal law at the time, crimes are considered to have been committed at the moment when the subject performs the action or omits the act that he was obliged to perform.