K
K
kimqar342534262021-06-03 12:26:02
PHP
kimqar34253426, 2021-06-03 12:26:02

Bitrix getlist how to get items only for the past hour?

There is a getlist that pulls all the elements from the database:

$arTransactions = \jakiro\TransactionTable::getList([
    'select' => [
      'XML_ID'
    ],
    'filter' => [
        'PAYED' => false
    ]
]);

How to make it pull out the created elements only for the past hour (by the DATE_CREATE field)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
scottparker, 2021-06-03
@kimqar34253426

'>DATE_CREATE' => ConvertTimeStamp(AddToTimeStamp(array('HH' => -1)), 'FULL')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question