CAdvBanner :: __innerExtractBitrixDates: Bitrix method

      
<?php 
//  CAdvBanner :: __innerExtractBitrixDates()
//  /dist/bitrix/modules/advertising/classes/general/advertising.php:3922

    
public static function __innerExtractBitrixDates($arBanner)
    {
        
$fs = array("to" => 0"first" => 0"from" => 0);
        if (isset(
$arBanner["DATE_SHOW_TO"])) $fs["to"] = $arBanner["DATE_SHOW_TO"];
        if (isset(
$arBanner["DATE_SHOW_FIRST"])) $fs["first"] = $arBanner["DATE_SHOW_FIRST"];
        if (isset(
$arBanner["DATE_SHOW_FROM"])) $fs["from"] = $arBanner["DATE_SHOW_FROM"];
        if (
$fs["to"] and strstr(trim($fs["to"])," ") == false$fs["to"].=" 23:59:59";
        if (
$fs["first"] and strstr(trim($fs["first"])," ") == false$fs["first"].=" 00:00:00";
        if (
$fs["from"] and strstr(trim($fs["from"])," ") == false$fs["from"].=" 00:00:00";

        return 
$fs;
    }