to_time

caqtus.shot_compilation.timing.to_time(
value: Decimal | float | str,
) Time

Converts a value to a Time object.

Parameters:

value – The value to convert to a Time object, in seconds.

Returns:

A Time object representing the value in seconds, rounded to the picosecond.