You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

10 lines
331 B

  1. # name = 'Siddharth'
  2. # email = 'siddharthsrivastava77@gmail.com'
  3. # print('INSERT INTO users (name, email) VALUES ("{}", "{}");'.format(name, email))
  4. import datetime
  5. # using now() to get current time
  6. current_time = str(datetime.datetime.now())
  7. current_time = current_time.split(":")
  8. print(current_time[0] + ":" + current_time[1])