T
T
Taras Shevchuk2015-11-25 22:33:01
Programming
Taras Shevchuk, 2015-11-25 22:33:01

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

1 answer(s)
O
Oleg Tsilyurik, 2015-11-26
@Olej

The system is reasonably POSIX compliant, and you should have the command there:

$ uptime
...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question