Ever thought of retrieving the system time and use while python programming? Please read through and watch the video.
- Import the module 'time' - import time
- Read through the help of time module - help(time)
- Get the system time by this function - time.asctime()
- Get the system time in the required format - time.strftime('%Y %M %d - %H:%M:%S')
Share if you found useful. Like the page in facebook for updates.
Post a Comment