A corporation manager and dashboard for EVE Online
Вы не можете выбрать более 25 тем
Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
|
- # -*- coding: utf-8 -*-
-
- from datetime import datetime
-
- __all__ = ["Clock"]
-
- _YEAR_DELTA = 1898
-
- class Clock:
- """EVE API module for the in-game clock."""
-
- def now(self):
- """Return the current date and time in the YC calendar as a string."""
- dt = datetime.utcnow()
- return str(dt.year - _YEAR_DELTA) + dt.strftime("-%m-%d %H:%M")
|