Created
August 4, 2020 14:31
-
-
Save farooqkz/8fafae050bd1bd57bff4d3f70f252005 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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