label_import/timestamp.py
def from_str(cls, timestamp_str):
        """
        Construct Timestamp from timestamp str.
        :param timestamp_str:
        :return:
        """
        units = timestamp_str.split(":")
        seconds_ms = units[-1].split(".")
        hours = int(units[0])
        minutes = int(units[1])
        seconds = int(seconds_ms[0])
        milliseconds = int(seconds_ms[1])
        return cls(hours, minutes, seconds, milliseconds)

        Construct Timestamp from timestamp str.
        :param timestamp_str:
        :return:
        
Construct Timestamp from timestamp str.
Construct Timestamp from timestamp str .
def from_str(cls, timestamp_str):
        units = timestamp_str.split(":")
        seconds_ms = units[-1].split(".")
        hours = int(units[0])
        minutes = int(units[1])
        seconds = int(seconds_ms[0])
        milliseconds = int(seconds_ms[1])
        return cls(hours, minutes, seconds, milliseconds)
def from_str ( cls , timestamp_str ) : units = timestamp_str . split ( ":" ) seconds_ms = units [ - 1 ] . split ( "." ) hours = int ( units [ 0 ] ) minutes = int ( units [ 1 ] ) seconds = int ( seconds_ms [ 0 ] ) milliseconds = int ( seconds_ms [ 1 ] ) return cls ( hours , minutes , seconds , milliseconds )
Construct Timestamp from timestamp str.
Construct Timestamp from timestamp str .
"""
        Construct Timestamp from timestamp str.
        :param timestamp_str:
        :return:
        """
None
cls
timestamp_str
None