def _compareTimeTuples(target, value, dateOnly=False):
t_yr, t_mth, t_dy, t_hr, t_min, _, _, _, _ = target<EOL>v_yr, v_mth, v_dy, v_hr, v_min, _, _, _, _ = value<EOL>if dateOnly:<EOL><INDENT>return ((t_yr == v_yr) and (t_mth == v_mth) and (t_dy == v_dy))<EOL><DEDENT>else:<EOL><INDENT>return ((t_yr == v_yr) and (t_mth == v_mth) and (t_dy == v_dy) and<EOL>(t_hr == v_hr) and (t_min == v_min))<EOL><DEDENT>
Ignores minutes and seconds as running the test could cross a minute
boundary. Technically the year, month, day, hour, minute, and second could
all change if the test is run on New Year's Eve, but we won't worry about
less than per-hour granularity.