timedelta_factory
Time delta factory, contains positive timedelta values and a helper factory method to create a timedelta object.
Classes
TimeDeltaFactory
Bases: BaseDataModel
Time delta model, contains positive timedelta values and a helper factory method to create a timedelta object.
Attributes:
-
days(int) –Days field, default is 0.
-
seconds(int) –Seconds field, default is 0.
-
microseconds(int) –Microseconds field, default is 0.
-
milliseconds(int) –Milliseconds field, default is 0.
-
minutes(int) –Minutes field, default is 0.
-
hours(int) –Hours field, default is 0.
-
weeks(int) –Weeks field, default is 0.
Attributes
days
class-attribute
instance-attribute
hours
class-attribute
instance-attribute
microseconds
class-attribute
instance-attribute
microseconds: int = Field(
default=0,
ge=0,
title="Microseconds",
description="Microseconds field",
)
milliseconds
class-attribute
instance-attribute
milliseconds: int = Field(
default=0,
ge=0,
title="Milliseconds",
description="Milliseconds field",
)