summaryrefslogtreecommitdiff
path: root/bvggrabber/api/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'bvggrabber/api/__init__.py')
-rw-r--r--bvggrabber/api/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bvggrabber/api/__init__.py b/bvggrabber/api/__init__.py
index ba68450..b13f756 100644
--- a/bvggrabber/api/__init__.py
+++ b/bvggrabber/api/__init__.py
@@ -65,9 +65,9 @@ class Departure(object):
'end': self.end,
'line': self.line,
'now_full': fullformat(self.now),
- 'now_hour': hourformat(self.now),
+ 'now_hour': timeformat(self.now),
'when_full': fullformat(self.when),
- 'when_hour': hourformat(self.when),
+ 'when_hour': timeformat(self.when),
'remaining': round(self.remaining)})
def __eq__(self, other):
@@ -92,5 +92,5 @@ class Departure(object):
def __str__(self):
return "Start: %s, End: %s, when: %s, now: %s, line: %s" % (
- self.start, self.end, hourformat(self.when),
- hourformat(self.now), self.line)
+ self.start, self.end, timeformat(self.when),
+ timeformat(self.now), self.line)