Last Command not giving year

Hi All,

i want the last login details along with year.

i tried below command but not giving me the year of last login.

last <$Userid> | head -1

i heard that if it is current year then it wont display the year else it will display the year. is it so?
if yes then , is there any way of even displaying even year for the current year?

can any one please help me in this?

Regards,
Ananda

It doesnot have an option to give you the year.

I cannot confirm that it ever shows any year. I have a log on one of my HP-UX servers that I know has over 1 year of data and it doesnt show the year anywhere.
I know this could caus some problems with some of our monitoring scripts at the end of the year. But would only be a problem for a short time, as I use tail command to only read the last 400 or so from the log. So if its january and I see december that would probabally be from last year. :stuck_out_tongue: