New answers tagged power-management
I have uploaded a bash script as a Gist to my Github account at print_osx_uptimes.sh which may help answer your question, even if not exactly what was asked (which was more complicated). The script will query the Apple System Log (ASL) facility for 'shutdown' messages. The 'Message' field’s values contain the system uptime as of the shutdown event, which I ...
You may be able to calculate based on total uptime. See this article on osXdaily. How to Check a Mac's Uptime To check your Mac's uptime, simply type ‘uptime’ in the Terminal. Terminal is an application found within /Applications/Utilities/ and is included in every version of Mac OS X. uptime Hit the return key and you’ll find the answer. ...
There's another thread - and proposed solution that might apply: https://discussions.apple.com/thread/5537854?start=0&tstart=0
Top 50 recent answers are included