Skip to content

Instantly share code, notes, and snippets.

@farooqkz
Created August 4, 2020 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save farooqkz/8fafae050bd1bd57bff4d3f70f252005 to your computer and use it in GitHub Desktop.
Save farooqkz/8fafae050bd1bd57bff4d3f70f252005 to your computer and use it in GitHub Desktop.
import cherrypy # <3
import time
class Time:
@cherrypy.expose
@cherrypy.tools.caching(delay=30)
def index(self):
return time.ctime(time.time())
cherrypy.quickstart(Time())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment