(str_len=13)
get timestamp string, length can only between 0 and 16
get timestamp string, length can only between 0 and 16
get timestamp string length can only between 0 and 16
def get_timestamp(str_len=13):
    """ get timestamp string, length can only between 0 and 16
    """
    if isinstance(str_len, int) and 0 < str_len < 17:
        return str(time.time()).replace(".", "")[:str_len]

    raise ParamsError("timestamp length can only between 0 and 16.")
def get_timestamp ( str_len = 13 ) : if isinstance ( str_len , int ) and 0 < str_len < 17 : return str ( time . time ( ) ) . replace ( "." , "" ) [ : str_len ] raise ParamsError ( "timestamp length can only between 0 and 16." )