Module genshin.models.starrail.chronicle.base
Starrail Chronicle Base Model.
Classes
class PartialTime (**data: Any)
-
Partial time model.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Expand source code
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)
Ancestors
- APIModel
- pydantic.main.BaseModel
Class variables
var day : int
var hour : int
var minute : int
var model_computed_fields
var model_config : pydantic.config.ConfigDict
var model_fields
var month : int
var year : int
Instance variables
prop datetime : datetime.datetime
-
Expand source code
@property def datetime(self) -> datetime.datetime: return datetime.datetime(self.year, self.month, self.day, self.hour, self.minute)