Lines Matching refs:directive
32 def compare_against_time(self, testing, directive, tuple_position, argument
38 strftime_output = time.strftime(directive, self.time_tuple).lower()
156 for directive in ('a','A','b','B','c','d','H','I','j','m','M','p','S',
158 compiled = self.time_re.compile("%" + directive)
159 found = compiled.match(time.strftime("%" + directive))
161 (time.strftime("%" + directive),
226 def helper(self, directive, position): argument
228 strf_output = time.strftime("%" + directive, self.time_tuple)
229 strp_output = _strptime._strptime_time(strf_output, "%" + directive)
232 (directive, strf_output, strp_output[position],
237 for directive in ('y', 'Y'):
238 self.helper(directive, 0)
250 for directive in ('B', 'b', 'm'):
251 self.helper(directive, 1)
283 for directive in ('A', 'a', 'w'):
284 self.helper(directive,6)
450 for directive in ('W', 'U'):
451 format_string = "%%Y %%%s %%w" % directive
457 (test_reason, directive, strp_input,