aboutsummaryrefslogtreecommitdiff
path: root/modules/tweets
diff options
context:
space:
mode:
authorGravatar jesopo2020-01-30 21:12:31 +0000
committerGravatar jesopo2020-01-30 21:20:56 +0000
commitd0d5cc4d0866d44eed652221940035d855296253 (patch)
tree1683eb3aaf56b457835fb0229379530a7013280d /modules/tweets
parentreplace "/" in channel logfile names with "," (diff)
signature
split utils.datetime out in to .parse and .format
Diffstat (limited to 'modules/tweets')
-rw-r--r--modules/tweets/format.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/tweets/format.py b/modules/tweets/format.py
index 8726ae2b..aab1c62d 100644
--- a/modules/tweets/format.py
+++ b/modules/tweets/format.py
@@ -3,7 +3,8 @@ from src import utils
def _timestamp(dt):
seconds_since = time.time()-dt.timestamp()
- timestamp = utils.datetime.to_pretty_time(seconds_since, max_units=2)
+ timestamp = utils.datetime.format.to_pretty_time(
+ seconds_since, max_units=2)
return "%s ago" % timestamp
def _normalise(tweet):