Generation

generate functionFri, 31 Mar 2023

Script que me indique cuando alguien inicie sesion en mi pc, y me diga que usuario ingreso, la fecha y hora

import datetime def register(): now = datetime.datetime.now() print("You are loggin in " + str(now.hour) + ":" + str(now.minute) + ":" + str(now.second)) print("The date is " + str(now.day) + "/" + str(now.month) + "/" + str(now.year)) register()

Questions about programming?Chat with your personal AI assistant