_time2int() now handles 24-hour times with am/pm. Closes #292