1 réponse
Bonjour,
Si tu es sous linux tu peux appeler la commande shell
Une solution pour windows :
https://stackoverflow.com/questions/16490309/how-to-get-the-user-login-logoff-time-by-python-for-both-windows-linux
Bonne chance
Si tu es sous linux tu peux appeler la commande shell
lastpar exemple avec
subprocess.Popenet extraire de son résultat l'information qui t'intéresse.
Une solution pour windows :
https://stackoverflow.com/questions/16490309/how-to-get-the-user-login-logoff-time-by-python-for-both-windows-linux
Bonne chance