#!/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.')
)


示例#2
0
#!/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.'))
示例#3
0
#!/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."))
示例#4
0
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.'))
示例#5
0
#!/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.')
)


示例#6
0
#!/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.'))