Anton Shestakov <av6@dwimlabs.net>, Sun, 17 Jul 2016 22:30:04 +0800
viewer: use thread-local IOLoop instance (recommended by Tornado docs)
candolint/utils.py
Permissions: -rw-r--r--
from __future__ import absolute_import from datetime import datetime from os.path import abspath, dirname, join return abspath(join(dirname(dirname(__file__)), *parts)) 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')