@@ -1,5 +1,6 @@ | |||||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||||
from .clock import Clock | |||||
from .image import ImageServer | from .image import ImageServer | ||||
__all__ = ["EVE"] | __all__ = ["EVE"] | ||||
@@ -7,8 +8,13 @@ __all__ = ["EVE"] | |||||
class EVE: | class EVE: | ||||
def __init__(self): | def __init__(self): | ||||
self._clock = Clock() | |||||
self._image = ImageServer() | self._image = ImageServer() | ||||
@property | @property | ||||
def clock(self): | |||||
return self._clock | |||||
@property | |||||
def image(self): | def image(self): | ||||
return self._image | return self._image |
@@ -0,0 +1,13 @@ | |||||
# -*- coding: utf-8 -*- | |||||
from datetime import datetime | |||||
__all__ = ["Clock"] | |||||
YEAR_DELTA = 1898 | |||||
class Clock: | |||||
def now(self): | |||||
dt = datetime.utcnow() | |||||
return str(dt.year - YEAR_DELTA) + dt.strftime("-%m-%d %H:%M") |
@@ -44,6 +44,8 @@ | |||||
<%block name="footer"> | <%block name="footer"> | ||||
<footer> | <footer> | ||||
<div> | <div> | ||||
YC ${g.eve.clock.now()} | |||||
• | |||||
Running <a href="https://github.com/earwig/calefaction">Calefaction</a> ${g.version} | Running <a href="https://github.com/earwig/calefaction">Calefaction</a> ${g.version} | ||||
• | • | ||||
<a href="https://eveonline.com">EVE Online</a> and all related trademarks are property of <a href="https://ccpgames.com">CCP hf</a>. | <a href="https://eveonline.com">EVE Online</a> and all related trademarks are property of <a href="https://ccpgames.com">CCP hf</a>. | ||||