nitypes.bintime.TimeValueTuple

class nitypes.bintime.TimeValueTuple

Bases: NamedTuple

A named tuple containing the whole seconds and fractional seconds parts of a time value.

whole_seconds: int

The whole seconds portion of a binary time value. This should be an int64.

fractional_seconds: int

The fractional seconds portion of a binary time value. This should be a uint64.

static from_cvi(lsb: int, msb: int) TimeValueTuple

Create a TimeValueTuple from a CVIAbsoluteTime representation.

Parameters:
Return type:

TimeValueTuple

to_cvi() tuple[int, int]

Return a representation as CVIAbsoluteTime.

Return type:

tuple[int, int]