parameters: (self, context, gameElement)
return_statement: return time.strftime('%Y-%m-%d', pubdate)
docstring: Convert the "expected" release date into the default MNV item format.
          return the formatted pubDate string
          return If there is not enough information to make a date then return an empty string
docstring_summary: Convert the "expected" release date into the default MNV item format.
          return the formatted pubDate string
          return If there is not enough information to make a date then return an empty string
docstring_tokens: Convert the expected release date into the default MNV item format . return the formatted pubDate string return If there is not enough information to make a date then return an empty string
function: def futureReleaseDate(self, context, gameElement):
          '''Convert the "expected" release date into the default MNV item format.
          return the formatted pubDate string
          return If there is not enough information to make a date then return an empty string
          '''
          try:
              if gameElement.find('expected_release_year').text is not None:
                  year = gameElement.find('expected_release_year').text
              else:
                  year = None
              if gameElement.find('expected_release_quarter').text is not None:
                  quarter = gameElement.find('expected_release_quarter').text
              else:
                  quarter = None
              if gameElement.find('expected_release_month').text is not None:
                  month = gameElement.find('expected_release_month').text
              else:
                  month = None
          except:
              return u''
          if not year:
              return u''
          if month and not quarter:
              pubdate = time.strptime((u'%s-%s-01' % (year, month)), '%Y-%m-%d')
          elif not month and quarter:
              month = str((int(quarter)*3))
              pubdate = time.strptime((u'%s-%s-01' % (year, month)), '%Y-%m-%d')
          else:
              pubdate = time.strptime((u'%s-12-01' % (year, )), '%Y-%m-%d')
  
          return time.strftime('%Y-%m-%d', pubdate)
function_tokens: def futureReleaseDate ( self , context , gameElement ) : try : if gameElement . find ( 'expected_release_year' ) . text is not None : year = gameElement . find ( 'expected_release_year' ) . text else : year = None if gameElement . find ( 'expected_release_quarter' ) . text is not None : quarter = gameElement . find ( 'expected_release_quarter' ) . text else : quarter = None if gameElement . find ( 'expected_release_month' ) . text is not None : month = gameElement . find ( 'expected_release_month' ) . text else : month = None except : return u'' if not year : return u'' if month and not quarter : pubdate = time . strptime ( ( u'%s-%s-01' % ( year , month ) ) , '%Y-%m-%d' ) elif not month and quarter : month = str ( ( int ( quarter ) * 3 ) ) pubdate = time . strptime ( ( u'%s-%s-01' % ( year , month ) ) , '%Y-%m-%d' ) else : pubdate = time . strptime ( ( u'%s-12-01' % ( year , ) ) , '%Y-%m-%d' ) return time . strftime ( '%Y-%m-%d' , pubdate )