Свойство | Тип | Описание | |
---|---|---|---|
$arrRange | array | Date range | |
$strDate | integer | Date string | |
$strFormat | string | Format string |
Метод | Описание | |
---|---|---|
__construct ( integer $strDate = null, string $strFormat = null ) | Set the object properties | |
__get ( string $strKey ) : mixed | null | Return an object property | |
floorToMinute ( integer $intTime = null ) : integer | Round a UNIX timestamp to the full minute | |
formatToJs ( string $strFormat ) : mixed | Convert a PHP format string into a JavaScript format string | |
getFormatFromRgxp ( string $strRgxp ) : string | Return a numeric format string depending on the regular expression name | |
getInputFormat ( string $strFormat = null ) : string | Return an input format string for a particular date (e.g. YYYY-MM-DD) | |
getNumericDateFormat ( ) : string | Return the numeric date format string | |
getNumericDatimFormat ( ) : string | Return the numeric datim format string | |
getNumericTimeFormat ( ) : string | Return the numeric time format string | |
getRegexp ( string $strFormat = null ) : string | Return a regular expression to check a date | |
getWeekBegin ( integer $intStartDay ) : integer | Return the begin of the week as timestamp | |
getWeekEnd ( integer $intStartDay ) : integer | Return the end of the week as timestamp | |
isNumericFormat ( string $strFormat ) : boolean | Check for a numeric date format | |
parse ( string $strFormat, integer $intTstamp = null ) : string | Parse a date format string and translate textual representations |
Метод | Описание | |
---|---|---|
createDateRanges ( ) | Create the date ranges | |
dateToUnix ( ) | Convert a date string into a Unix timestamp using the format string | |
resolveCustomModifiers ( string $strDate ) : string | Resolve the custom modifiers |
public __construct ( integer $strDate = null, string $strFormat = null ) | ||
$strDate | integer | An optional date string |
$strFormat | string | An optional format string |
protected dateToUnix ( ) |
public static floorToMinute ( integer $intTime = null ) : integer | ||
$intTime | integer | The timestamp |
Результат | integer | The rounded timestamp |
public static formatToJs ( string $strFormat ) : mixed | ||
$strFormat | string | The PHP format string |
Результат | mixed | The JavaScript format string |
public static getFormatFromRgxp ( string $strRgxp ) : string | ||
$strRgxp | string | The regular expression name |
Результат | string | The numeric format string |
public static getInputFormat ( string $strFormat = null ) : string | ||
$strFormat | string | An optional format string |
Результат | string | The input format string |
public static getNumericDateFormat ( ) : string | ||
Результат | string | The numeric date format string |
public static getNumericDatimFormat ( ) : string | ||
Результат | string | The numeric datim format string |
public static getNumericTimeFormat ( ) : string | ||
Результат | string | The numeric time format string |
public getWeekBegin ( integer $intStartDay ) : integer | ||
$intStartDay | integer | The week start day |
Результат | integer | The Unix timestamp |
public getWeekEnd ( integer $intStartDay ) : integer | ||
$intStartDay | integer | The week start day |
Результат | integer | The Unix timestamp |
public static isNumericFormat ( string $strFormat ) : boolean | ||
$strFormat | string | The PHP format string |
Результат | boolean | True if the date format is numeric |
protected static resolveCustomModifiers ( string $strDate ) : string | ||
$strDate | string | The date string |
Результат | string | The resolved date string |