Overview
This function, “getuserlastlogin(userName)”, is used to get the date and time of the last login for a specified user.
I can confirm that only logins of the current day are taken into account.