I would like to know if there is a way to get the last shutdown date and time. I can run into my program a CLI call to "last shutdown" and parse the string, but it comes without the year, so is there any way to retrieve that information?
[MacOS] How to get last shutdown date information?
who -b
I can use who -b but it will be the same to last shutdown. I am seeking for a API level to use with Swift.