def parse_date_pattern(name):
 prev = ''
 curr = ''
 rendered = ''
 for s in range(0, len(name)):
  curr = name[s]
  if (curr == '%'):
   pass
  elif ((curr in settings.date_regex()) and (prev == '%')):
   rendered += str(datetime.utcnow().strftime('%{0}'.format(curr)))
  else:
   rendered += curr
  logger.debug('Partially rendered name: {0}'.format(rendered))
  prev = curr
 logger.debug('Fully rendered name: {0}'.format(rendered))
 return rendered

def parse_date_pattern ( name ) : prev = '' curr = '' rendered = '' for s in range ( 0 , len ( name ) ) : curr = name [ s ] if ( curr == '%' ) : pass elif ( ( curr in settings . date_regex ( ) ) and ( prev == '%' ) ) : rendered += str ( datetime . utcnow ( ) . strftime ( '%{0}' . format ( curr ) ) ) else : rendered += curr logger . debug ( 'Partially rendered name: {0}' . format ( rendered ) ) prev = curr logger . debug ( 'Fully rendered name: {0}' . format ( rendered ) ) return rendered
scan and parse name for :py:func:time .