Dynamic copyright


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

Este script obtiene el año actual lo compara con el año de publicación inicial de nuestro copyright y actuá en consecuencia.

This script gets the current year compared with the year of initial publication of our copyright and acted accordingly.


Copy this code and paste it in your HTML
  1. import time
  2. Year = time.strftime("%Y")
  3. if Year > 2009:
  4. print "\302\251 Copyright 2009 - %s Codigo Python. All rights reserved." % Year
  5. else:
  6. print "\302\251 Copyright 2009 Codigo Python. All rights reserved."

URL: http://www.codigopython.com.ar/miniguias/copyright-dinamico

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.