def _string_to_milliseconds(self, value):
        """Convert a string to milliseconds. Time unit
        for the time values in Typecaft.

        Parameters
        ----------
        time_node : str
            The value to convert.

        Returns
        -------
        offset : int
            The offset value.

        """

        if value == '0':
            return 0

        time_start = value.split(".")
        microseconds = int(time_start[1])
        try:
            x = time.strptime(time_start[0], '%H:%M:%S')

            offset = int(datetime.timedelta(hours=x.tm_hour, minutes=x.tm_min,
                seconds=x.tm_sec).seconds * 1000) + microseconds
        except __HOLE__:
            offset = (int(time_start[0]) * 1000) + microseconds

        return offset
dataset/ETHPy150Open cidles/poio-api/src/poioapi/io/typecraft.py/Writer._string_to_milliseconds