DateTime
extends DateTime
in package
Description of DateTime.
Tags
Table of Contents
- $format : string
- Default output format.
- $isNull : bool
- Support for Null values.
- __construct() : DateTime|false
- AbraFlexi dateTime to PHP DateTime conversion.
- __toString() : string
- Render Object as AbraFlexi::$DateTimeFormat.
- setFormat() : DateTime|false
- Easy way how to force format DateTime used.
Properties
$format
Default output format.
public
static string
$format
= 'Y-m-d\\TH:i:s.u+P'
$isNull
Support for Null values.
public
bool
$isNull
= false
Methods
__construct()
AbraFlexi dateTime to PHP DateTime conversion.
public
__construct([string $flexidatetime = 'NOW' ]) : DateTime|false
Parameters
- $flexidatetime : string = 'NOW'
-
2017-09-26T10:00:53.755+02:00 or older 2017-05-19T00:00:00+02:00
Return values
DateTime|false —__toString()
Render Object as AbraFlexi::$DateTimeFormat.
public
__toString() : string
Return values
string —setFormat()
Easy way how to force format DateTime used.
public
setFormat(string $format) : DateTime|false
Parameters
- $format : string