Posted By

eliluminado on 11/22/10


Tagged

copyright dynamic


Versions (?)

Dynamic copyright


 / Published in: Python
 

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

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.

  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."

Report this snippet  

You need to login to post a comment.