Created
October 9, 2015 13:05
-
-
Save EvilWolf/e6f55eea9fcb920d01b5 to your computer and use it in GitHub Desktop.
Фильтр по дате СIBlockElement::GetList()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$arFilter = array( | |
'IBLOCK_ID' => '68', | |
'<=PROPERTY_TIME' => ConvertDateTime(date( "d.m.Y H:i:s", time() - ($settings['ORDER_RECALC_TIME_DIFF'] * 60)) , "YYYY-MM-DD HH:MM:SS" ) | |
); | |
// Выбирет все элементы у которых время в TIME меньше чем (Текущее время - ORDER_RECALC_TIME_DIFF) | |
// ORDER_RECALC_TIME_DIFF - Разница в минутах. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment