luna_lambda_tools.public.handlers.schemas.DetectTs
- class luna_lambda_tools.public.handlers.schemas.DetectTs(x=0, /)[source]
User-defined timestamp relative to something, such as the start of a video
- __init__()
Methods
__init__()as_integer_ratio()Return a pair of integers, whose ratio is exactly equal to the original float.
conjugate()Return self, the complex conjugate of any float.
floatValidator(value, *args, **kwargs)Validate value is float or might be converted to it
fromhex()Create a floating-point number from a hexadecimal string.
hex()Return a hexadecimal representation of a floating-point number.
intValidator(value, *args, **kwargs)Validate value is an integer or might be converted to it
is_integer()Return True if the float is an integer.
numberMultipleValidator(value, *args, **kwargs)Ensure that the number is multiple of the specified multiple_of property
numberSizeValidator(value, *args, **kwargs)Validate that number respects the limits
validateNonStr(value, *args, **kwargs)Validate value is not string
validateNotNaN(value, *args, **kwargs)Validate that value is not NaN
Attributes
forbidNaNgegtimagthe imaginary part of a complex number
leltmultiple_ofparamrealthe real part of a complex number
strict