Patent ID: 8266364

Claim:
A portable electronic device comprising: a first storage section configured to store immigration information in order, the immigration information including a country code and information indicative of entry or exit; a receiver configured to receive a command transmitted from external equipment; a first writing section configured to write a country code corresponding to a write command of exit information and information indicative of exit in the first storage section, provided that the write command of exit information including the country code is received by the receiver, a country code included in latest immigration information of the immigration information stored in the first storage section agrees with the country code included in the write command of exit information, and the latest immigration information is entry information including information indicative of entry; and a second writing section configured to write a country code corresponding to a write command of entry information and information indicative of entry in the first storage section, provided that the write command of entry information including the country code is received by the receiver, and the latest immigration information is exit information including the information indicative of exit.