Lines Matching refs:directive
130 for offset,directive in ((0,'%c'), (1,'%x'), (2,'%X')):
143 if '00' in time.strftime(directive, time_tuple):
219 def __seqToRE(self, to_convert, directive):
220 """Convert a list to a regex string for matching a directive.
235 regex = '(?P<%s>%s' % (directive, regex)
277 # If we are dealing with the %U directive (week starts on Sunday), it's
341 raise ValueError("'%s' is a bad directive in format '%s'" %
490 raise ValueError("ISO year directive '%G' must be used with "
491 "the ISO week directive '%V' and a weekday "
492 "directive ('%A', '%a', '%w', or '%u').")
494 raise ValueError("Day of the year directive '%j' is not "
495 "compatible with ISO year directive '%G'. "
499 raise ValueError("ISO week directive '%V' must be used with "
500 "the ISO year directive '%G' and a weekday "
501 "directive ('%A', '%a', '%w', or '%u').")
503 raise ValueError("ISO week directive '%V' is incompatible with "
504 "the year directive '%Y'. Use the ISO year '%G' "