An electronic device, comprising: a battery; and at least one processor, wherein the processor is configured to: identify whether an external power source for charging the battery is connected to the electronic device, identify a voltage of the battery when connection of the external power source is identified, determine a charge start time based on at least time when the connection of the external power source is identified, determine a charge end time based on at least situation information related to the electronic device, determine a charge stop time of the battery based on at least the charge start time, the charge end time and the voltage of the battery when a difference between the charge start time and the charge end time satisfies a designated threshold, and divide a period between the charge start time and the charge end time into a first charge section, a charge stop section and a second charge section based on at least the charge stop time and perform charging of the battery; wherein the processor is further configured to charge the battery in a first designated mode in the first charge section and charge the battery in a second designated mode in the second charge section; wherein the situation information related to the electronic device comprises information on a surrounding environment of the electronic device obtained using an illumination sensor of the electronic device; wherein the charge stop time of the battery is the time that the charge stop section begins; and wherein if the illumination sensor detects in the first charge section an illumination level greater than a predetermined illumination level for less than a designated time period, the processor is configured to maintain a current charge mode of the battery. a battery; and at least one processor, wherein the processor is configured to: identify whether an external power source for charging the battery is connected to the electronic device, identify a voltage of the battery when connection of the external power source is identified, determine a charge start time based on at least time when the connection of the external power source is identified, determine a charge end time based on at least situation information related to the electronic device, determine a charge stop time of the battery based on at least the charge start time, the charge end time and the voltage of the battery when a difference between the charge start time and the charge end time satisfies a designated threshold, and divide a period between the charge start time and the charge end time into a first charge section, a charge stop section and a second charge section based on at least the charge stop time and perform charging of the battery; identify whether an external power source for charging the battery is connected to the electronic device, identify a voltage of the battery when connection of the external power source is identified, determine a charge start time based on at least time when the connection of the external power source is identified, determine a charge end time based on at least situation information related to the electronic device, determine a charge stop time of the battery based on at least the charge start time, the charge end time and the voltage of the battery when a difference between the charge start time and the charge end time satisfies a designated threshold, and divide a period between the charge start time and the charge end time into a first charge section, a charge stop section and a second charge section based on at least the charge stop time and perform charging of the battery; wherein the processor is further configured to charge the battery in a first designated mode in the first charge section and charge the battery in a second designated mode in the second charge section; wherein the situation information related to the electronic device comprises information on a surrounding environment of the electronic device obtained using an illumination sensor of the electronic device; wherein the charge stop time of the battery is the time that the charge stop section begins; and wherein if the illumination sensor detects in the first charge section an illumination level greater than a predetermined illumination level for less than a designated time period, the processor is configured to maintain a current charge mode of the battery.