How to add filter last past one-hour completed orders collection in Magento 2?
$searchCriteria = $this->searchCriteriaBuilder
->addFilter('is_process', $isprocess)
->addSortOrder($this->sortBuilder->setField('entity_id')
->setAscendingDirection()->create())
->setPageSize(3)->setCurrentPage(1)->create();
$fromDate = date('Y-m-d H:i:s', strtotime('-1 hour'));
$toDate = date('Y-m-d H:i:s');
$ordersList = $this->orderRepository->getList($searchCriteria);
$ordersList->addFieldToFilter('created_at', array('from' => $fromDate, 'to' => $toDate));
return $ordersList;