naive am/pm implementation