def now(parser, token):
 bits = token.contents.split('"')
 if (len(bits) != 3):
  raise TemplateSyntaxError("'now' statement takes one argument")
 format_string = bits[1]
 return NowNode(format_string)

def now ( parser , token ) : bits = token . contents . split ( '"' ) if ( len ( bits ) != 3 ) : raise TemplateSyntaxError ( "'now' statement takes one argument" ) format_string = bits [ 1 ] return NowNode ( format_string )
display the date .