Lines Matching refs:tstr
364 def _parse_hh_mm_ss_ff(tstr):
366 len_str = len(tstr)
374 time_comps[comp] = int(tstr[pos:pos+2])
377 next_char = tstr[pos:pos+1]
391 if tstr[pos] not in '.,':
403 time_comps[3] = int(tstr[pos:(pos+to_parse)])
407 and not all(map(_is_ascii_digit, tstr[(pos+to_parse):]))):
412 def _parse_isoformat_time(tstr):
414 len_str = len(tstr)
418 # This is equivalent to re.search('[+-Z]', tstr), but faster
419 tz_pos = (tstr.find('-') + 1 or tstr.find('+') + 1 or tstr.find('Z') + 1)
420 timestr = tstr[:tz_pos-1] if tz_pos > 0 else tstr
425 if tz_pos == len_str and tstr[-1] == 'Z':
428 tzstr = tstr[tz_pos:]
447 tzsign = -1 if tstr[tz_pos - 1] == '-' else 1
1839 tstr = date_string[(separator_location+1):]
1846 if tstr:
1848 time_components = _parse_isoformat_time(tstr)