def update_from_item(self, item):
if not self.is_time_module:<EOL><INDENT>item["<STR_LIT:name>"] = self.name<EOL>item["<STR_LIT>"] = self.instance<EOL>if "<STR_LIT>" in item and item["<STR_LIT>"] in self.color_map:<EOL><INDENT>item["<STR_LIT>"] = self.color_map[item["<STR_LIT>"]]<EOL><DEDENT>is_updated = self.item != item<EOL>self.item = item<EOL><DEDENT>else:<EOL><INDENT>t = time()<EOL>if self.time_zone_check_due < t:<EOL><INDENT>interval = self.i3status.update_interval<EOL>if not self.set_time_zone(item):<EOL><INDENT>self.time_zone_check_due = <NUM_LIT:0><EOL><DEDENT>elif self.time_zone_check_due and (<EOL>t - self.time_zone_check_due > <NUM_LIT:5> + interval<EOL>):<EOL><INDENT>self.time_zone_check_due = <NUM_LIT:0><EOL><DEDENT>else:<EOL><INDENT>self.time_zone_check_due = ((int(t) // <NUM_LIT>) * <NUM_LIT>) + <NUM_LIT><EOL><DEDENT>if not self.time_started:<EOL><INDENT>self.time_started = True<EOL>self.i3status.py3_wrapper.timeout_queue_add(self)<EOL><DEDENT><DEDENT>is_updated = False<EOL><DEDENT>return is_updated<EOL>
Update from i3status output. returns if item has changed.