nitypes.bintime.DateTimeArray ============================= .. py:class:: nitypes.bintime.DateTimeArray(value: collections.abc.Iterable[nitypes.bintime.DateTime] | None = None) Bases: :py:obj:`collections.abc.MutableSequence`\ [\ :py:obj:`nitypes.bintime.DateTime`\ ] A mutable array of :class:`DateTime` values in NI Binary Time Format (NI-BTF). :raises TypeError: If any item in value is not a DateTime instance. .. py:attribute:: __slots__ :value: ['_array'] .. py:method:: __getitem__(index: int) -> nitypes.bintime.DateTime __getitem__(index: slice) -> DateTimeArray Return self[index]. :raises TypeError: If index is an invalid type. :raises IndexError: If index is out of range. .. py:method:: __len__() -> int Return len(self). .. py:method:: __setitem__(index: int, value: nitypes.bintime.DateTime) -> None __setitem__(index: slice, value: collections.abc.Iterable[nitypes.bintime.DateTime]) -> None Set a new value for DateTime at the specified location or slice. :raises TypeError: If index is an invalid type, or slice value is not iterable. :raises ValueError: If slice assignment length doesn't match the selected range. :raises IndexError: If index is out of range. .. py:method:: __delitem__(index: int) -> None __delitem__(index: slice) -> None Delete the value at the specified location or slice. :raises TypeError: If index is an invalid type. :raises IndexError: If index is out of range. .. py:method:: insert(index: int, value: nitypes.bintime.DateTime) -> None Insert the DateTime value before the specified index. :raises TypeError: If index is not int or value is not DateTime. .. py:method:: extend(values: collections.abc.Iterable[nitypes.bintime.DateTime]) -> None Extend the array by appending the elements from values. .. py:method:: __eq__(other: object) -> bool Return self == other. .. py:method:: __reduce__() -> tuple[Any, Ellipsis] Return object state for pickling. .. py:method:: __repr__() -> str Return repr(self). .. py:method:: __str__() -> str Return str(self). .. py:method:: append(value) S.append(value) -- append value to the end of the sequence .. py:method:: clear() S.clear() -> None -- remove all items from S .. py:method:: reverse() S.reverse() -- reverse *IN PLACE* .. py:method:: pop(index=-1) S.pop([index]) -> item -- remove and return item at index (default last). Raise IndexError if list is empty or index is out of range. .. py:method:: remove(value) S.remove(value) -- remove first occurrence of value. Raise ValueError if the value is not present. .. py:method:: __iadd__(values) .. py:attribute:: __abc_tpflags__ :value: 32 .. py:method:: __iter__() .. py:method:: __contains__(value) .. py:method:: __reversed__() .. py:method:: index(value, start=0, stop=None) S.index(value, [start, [stop]]) -> integer -- return first index of value. Raises ValueError if the value is not present. Supporting start and stop arguments is optional, but recommended. .. py:method:: count(value) S.count(value) -> integer -- return number of occurrences of value .. py:method:: __subclasshook__(C) :classmethod: .. py:attribute:: __class_getitem__