Advertisement
N4rCochaos

Obtendo data e hora atuais com Python by @N4rCochaos

Jan 31st, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. Obtendo data e hora atuais com Python by @N4rCochaos contato:https://twitter.com/N4rCochaos
  2.  
  3. from datetime import datetime
  4. now= datetime.now()
  5.  
  6. print now
  7. currentyear= now.year
  8. currentmonth=now.month
  9. current_day=now.day
  10.  
  11. print str(now.month)+"/"+str(now.day)+"/"+str(now.year)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement