Needed this the other day:
Use the last commands
last -x | grep shutdown last -x | grep reboot
Source`