def _get_created(created):
 if (created == 'now'):
  return datetime.now()
 elif created:
  return created
 else:
  return datetime(2011, random.randint(1, 12), random.randint(1, 28), random.randint(0, 23), random.randint(0, 59), random.randint(0, 59))

def _get_created ( created ) : if ( created == 'now' ) : return datetime . now ( ) elif created : return created else : return datetime ( 2011 , random . randint ( 1 , 12 ) , random . randint ( 1 , 28 ) , random . randint ( 0 , 23 ) , random . randint ( 0 , 59 ) , random . randint ( 0 , 59 ) )
returns a datetime .