nullSafeCompareDates
integer public static \Bitrix\Crm\Statistics\StatisticEntryBase::nullSafeCompareDates( \Bitrix\Main\Type\Date|null $first = null, \Bitrix\Main\Type\Date|null $second = null );
Method securely compares two dates in Unix zero time mark. Empty NULL parameter is viewed as zero time mark. Static method.
Returns value less than 0, if the first date is before the second date. Returns 0, when dates are equals. Returns value more than 0, when first date is later than second date.
Parameters
Parameter | Description | Version |
---|---|---|
$first | First date. | |
$second | Second date. |
Example
© «Bitrix24», 2001-2024
Up