A corporation manager and dashboard for EVE Online
No puede seleccionar más de 25 temas
Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
|
- # -*- 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")
|