How to get the system time using Python 3

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') 
The format code is clearly given in the help of time module
Share if you found useful. Like the page in facebook for updates.