def _get_volume_creation_time(volume):
 try:
  return volume.extra['create_time']
 except KeyError:
  return parse_date(volume.extra['created_at']).replace(tzinfo=tzutc())

def _get_volume_creation_time ( volume ) : try : return volume . extra [ 'create_time' ] except KeyError : return parse_date ( volume . extra [ 'created_at' ] ) . replace ( tzinfo = tzutc ( ) )
extract the creation time from an aws or rackspace volume .