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
Return values
intparseDateString()
Parse date from string.
public
static parseDateString(string $str) : string|null
Parameters
- $str : string
-
Source string.