\TxTextControl\ReportingCloud\AssertAssertDateTimeTrait

Trait AssertDateTimeTrait

Summary

Methods
Properties
Constants
assertDateTime()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
getDateTimeLength()
No private properties found
N/A

Methods

assertDateTime()

assertDateTime(string  $value, string  $message = '') : void

Check value is a valid DateTime string

Parameters

string $value
string $message

Throws

\TxTextControl\ReportingCloud\Exception\InvalidArgumentException

getDateTimeLength()

getDateTimeLength() : int

Get the length of the required dateTime string

Returns

int —