How do I know when an iPhone was switched off?
There is no way to easily find out when the phone powered off due to the battery dying. You can, however, get your battery life by charging it completely (till 100%), let it die, then charge to power it up and then going to Settings > General > Usage > Time since last full charge and adding up the times for Usage and Standby.