Is there way to know when last logged in and out? Is it possible to know when I last time logged in and out?

I would prefer to access this information from Terminal, but a GUI tool is also okay.
In the Terminal application, type last and voilà, there is your answer!