Class DateTime
Check if the input is a valid datetime
- Wei\Base
-
Wei\Validator\BaseValidator
-
Wei\Validator\DateTime
public
boolean
|
|
protected
boolean
|
__call(),
__construct(),
__get(),
getOption(),
setOption()
|
t()
|
protected
string
|
$invalidMessage
Message occurred when thrown "Failed to parse time string" exception |
#
'%name% must be a valid datetime'
|
protected
string
|
$formatMessage
Message occurred when datetime format not match "format" property |
#
'%name% must be a valid datetime, the format should be "%format%", e.g. %example%'
|
protected
string
|
$tooLateMessage
The error message for "before" property |
#
'%name% must be earlier than %before%'
|
protected
string
|
$tooEarlyMessage
The error message for "after" property |
#
'%name% must be later than %after%'
|
protected
string
|
$negativeMessage
The common message for negative validator |
#
'%name% must not be a valid datetime'
|
protected
string
|
$format
The Datetime format string |
#
null
|
protected
string
|
$before
|
|
protected
string
|
$after
|
|
protected
string
|
$example
The example datetime parameter for error message |
$errors,
$name,
$negative,
$notStringMessage,
$validator
|
$providers,
$wei
|
$t
|