def _dict_to_tuple(d):
<EOL>retval = _niltime[:]<EOL>for k,i in ( ('<STR_LIT:Y>', <NUM_LIT:0>), ('<STR_LIT:M>', <NUM_LIT:1>), ('<STR_LIT:D>', <NUM_LIT:2>), ('<STR_LIT:h>', <NUM_LIT:3>), ('<STR_LIT:m>', <NUM_LIT:4>), ):<EOL><INDENT>v = d.get(k)<EOL>if v: retval[i] = int(v)<EOL><DEDENT>v = d.get('<STR_LIT:s>')<EOL>if v:<EOL><INDENT>msec,sec = _modf(float(v))<EOL>retval[<NUM_LIT:6>],retval[<NUM_LIT:5>] = int(round(msec*<NUM_LIT:1000>)), int(sec)<EOL><DEDENT>v = d.get('<STR_LIT>')<EOL>if v and v != '<STR_LIT>':<EOL><INDENT>h,m = list(map(int, v.split('<STR_LIT::>')))<EOL>offset=_localtimezone().utcoffset(_datetime.now())<EOL>local_offset_hour = offset.seconds/<NUM_LIT><EOL>local_offset_min = (offset.seconds%<NUM_LIT>)%<NUM_LIT><EOL>if local_offset_hour > <NUM_LIT:12>: <EOL><INDENT>local_offset_hour -= <NUM_LIT><EOL><DEDENT>if local_offset_hour != h or local_offset_min != m:                <EOL><INDENT>if h<<NUM_LIT:0>:<EOL><INDENT>foff = _fixedoffset(-((abs(h)*<NUM_LIT>+m)))<EOL><DEDENT>else:<EOL><INDENT>foff = _fixedoffset((abs(h)*<NUM_LIT>+m)) <EOL><DEDENT>dt = _datetime(retval[<NUM_LIT:0>],retval[<NUM_LIT:1>],retval[<NUM_LIT:2>],retval[<NUM_LIT:3>],retval[<NUM_LIT:4>],<EOL>retval[<NUM_LIT:5>],<NUM_LIT:0>,foff)<EOL>localdt=dt.astimezone(_localtimezone())<EOL>retval[<NUM_LIT:0>] = localdt.year<EOL>retval[<NUM_LIT:1>] = localdt.month<EOL>retval[<NUM_LIT:2>] = localdt.day<EOL>retval[<NUM_LIT:3>] = localdt.hour<EOL>retval[<NUM_LIT:4>] = localdt.minute<EOL>retval[<NUM_LIT:5>] = localdt.second<EOL><DEDENT><DEDENT>if d.get('<STR_LIT>', <NUM_LIT:0>):<EOL><INDENT>retval[<NUM_LIT:0>:<NUM_LIT:5>] = list(map(operator.__neg__, retval[<NUM_LIT:0>:<NUM_LIT:5>]))<EOL><DEDENT>return tuple(retval)<EOL>
Convert a dictionary to a time tuple.  Depends on key values in the
    regexp pattern!