A corporation manager and dashboard for EVE Online
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 

16 wiersze
361 B

  1. # -*- coding: utf-8 -*-
  2. from datetime import datetime
  3. __all__ = ["Clock"]
  4. _YEAR_DELTA = 1898
  5. class Clock:
  6. """EVE API module for the in-game clock."""
  7. def now(self):
  8. """Return the current date and time in the YC calendar as a string."""
  9. dt = datetime.utcnow()
  10. return str(dt.year - _YEAR_DELTA) + dt.strftime("-%m-%d %H:%M")