Documentation

AssertDateTimeTrait

Trait AssertDateTimeTrait

Table of Contents

Methods

assertDateTime()  : void
Check value is a valid DateTime string
getDateTimeLength()  : int
Get the length of the required dateTime string

Methods

assertDateTime()

Check value is a valid DateTime string

public static assertDateTime(string $value[, string $message = '' ]) : void
Parameters
$value : string
$message : string = ''

getDateTimeLength()

Get the length of the required dateTime string

private static getDateTimeLength() : int
Return values
int

        
On this page

Search results