Bitrix API

StatisticEntryBase

AbstractYes

Table of Contents

Methods

nullSafeCompareDates()  : int
Compare two dates by Unix timestamp in a null safe way. A NULL is treated as zero timestamp.
parseDateString()  : string|null
Parse date from string.

Methods

nullSafeCompareDates()

Compare two dates by Unix timestamp in a null safe way. A NULL is treated as zero timestamp.

public static nullSafeCompareDates([Date|null $first = null ][, Date|null $second = null ]) : int

Return a value less than 0 if this first date is before second. Return 0 if they are equal. Return a value greater than 0 if this first date is after second.

Parameters
$first : Date|null = null

First date.

$second : Date|null = null

Second date.

Return values
int

parseDateString()

Parse date from string.

public static parseDateString(string $str) : string|null
Parameters
$str : string

Source string.

Return values
string|null

        
On this page

Search results