The last_changed field of a State Object is a Python datetime, so you can just use its strftime method (instead of having to first convert it to a timestamp.)
The time in last_changed is UTC. If you want to display it in UTC then use pnbruckner’s suggestion. If you want to convert it to your local time, use tom_I’s suggestion.