SIMNet/simnet/models/starrail/chronicle/base.py
2023-06-09 22:55:51 +08:00

19 lines
378 B
Python

"""Starrail Chronicle Base Model."""
import datetime
from simnet.models.base import APIModel
class PartialTime(APIModel):
"""Partial time model."""
year: int
month: int
day: int
hour: int
minute: int
@property
def datetime(self) -> datetime.datetime:
return datetime.datetime(self.year, self.month, self.day, self.hour, self.minute)