def determine_timestamp(item):
 for key in ['creationTimestamp', 'timeCreated']:
  if (key in item):
   return item[key]
 raise ValueError('Could not determine timestamp key for {0}'.format(item.get('kind', item)))

def determine_timestamp ( item ) : for key in [ 'creationTimestamp' , 'timeCreated' ] : if ( key in item ) : return item [ key ] raise ValueError ( 'Could not determine timestamp key for {0}' . format ( item . get ( 'kind' , item ) ) )
determine the timestamp of the given item args: item: [dict] specifies an resource instance created by an api .