nl: string '%Y-%m-%d', convert the result into a string and append it to ',', substitute the result for d. format string 'tag:%s%s:%s/%s' with bits.hostname, d, bits.path and bits.fragment, return it.
code: return 'tag:%s%s:%s/%s' % ( bits . hostname , d , bits . path , bits . fragment )