149:7dc53d7e465f
Anton Shestakov <av6@dwimlabs.net>, Sun, 17 Jul 2016 22:30:04 +0800
viewer: use thread-local IOLoop instance (recommended by Tornado docs)

next change 150:498f984cd1ef
previous change 145:9c65d66fcda1

candolint/utils.py

Permissions: -rw-r--r--

Other formats: Feeds:
from __future__ import absolute_import
from datetime import datetime
from os.path import abspath, dirname, join
def rel(*parts):
return abspath(join(dirname(dirname(__file__)), *parts))
def timestamp():
return datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%S+00:00')
def parse_timestamp(value):
return datetime.strptime(value, '%Y-%m-%dT%H:%M:%S+00:00')