Answer the question
In order to leave comments, you need to log in
How to get OS X last login time?
You need to find out in the code the time of the last wake-up in OS X (it doesn’t matter if it was just logging into an account or a full start of the machine). Tell me how you would implement it, in any programming language.
Answer the question
In order to leave comments, you need to log in
The system is reasonably POSIX compliant, and you should have the command there:
$ uptime
...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question