#!/usr/bin/env python3 # datetime.py # # CGI/SSI version # import time, saytime t = time.localtime() print("Content-type: text/html\n") print( "In Phoenix, Arizona, it is now " + saytime.saytime_t(t).words() + time.strftime(', on %A, %d %B %Y.') )
#!/usr/bin/env python3 # datetime.py by Bill Weinman <http://bw.org/contact/> # Copyright (c) 2010 The BearHeart Group, LLC # CGI/SSI version for bw.org # # import saytime as a module import time, saytime t = time.localtime() print("Content-type: text/html\n") print("In Phoenix, Arizona, it is now " + saytime.saytime_t(t).words() + time.strftime(', on %A, %d %B %Y.'))
#!/usr/bin/env python3 # datetime.py by Bill Weinman <http://bw.org/contact/> # Copyright (c) 2010 The BearHeart Group, LLC # CGI/SSI version for bw.org # import time, saytime t = time.localtime() print("Content-type: text/html\n") print("In Phoenix, Arizona, it is now " + saytime.saytime_t(t).words() + time.strftime(", on %A, %d %B %Y."))
import time, saytime t = time.localtime() print("In Bangalore, India, it is now " + saytime.saytime_t(t).words() + time.strftime(', on %a, %d %b %Y.'))
#!/usr/local/bin/python3.4 # By Amir Hassan Azimi [http://parsclick.net/] import time, saytime t = time.localtime() print("Content-type: text/html\n") print( "In London, United Kingdom, it is now " + saytime.saytime_t(t).words() + time.strftime(', on %A, %d %B %Y.') )
#!/usr/bin/python import time, saytime t = time.localtime() print("Content-type: text/html\n") print("Florianopolis City - Santa Catarina Island it is now " + saytime.saytime_t(t).words() + time.strftime(', on %A, %d %B %Y.'))