abobaker09

date_time_python

Oct 8th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. #للتاريخ والزمن
  2. import datetime
  3. now = datetime.datetime.now()
  4. print ("Current date and time : ")
  5. print (now.strftime("%Y-%m-%d %H:%M:%S"))
Advertisement
Add Comment
Please, Sign In to add comment