Fecha actual en formato rss


/ Published in: Python
Save to your folder(s)



Copy this code and paste it in your HTML
  1. import datetime
  2. import time
  3. import email.Utils
  4.  
  5. hoy = datetime.datetime.now()
  6. hoySec = time.mktime(now.timetuple())
  7. fecha = email.Utils.formatdate(hoySec)
  8. fecha[0:len(fecha)-6] + " CET"

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.