lastlog

Show the most recent login of all users or of a user. More information: https://manned.org/lastlog.

lastlog

lastlog --user username

lastlog --before 7

lastlog --time 3