Skip to content

DateUtilsAware


  • Full name: \Qubus\Validation\Rules\Traits\DateUtilsAware

Methods

isValidDate

Check the $date is valid.

protected isValidDate(mixed $date): bool

Parameters:

Parameter Type Description
$date mixed

throwException

Throw exception.

protected throwException(mixed $value): \Exception

Parameters:

Parameter Type Description
$value mixed

getTimeStamp

Given $date and get the time stamp

protected getTimeStamp(mixed $date): int

Parameters:

Parameter Type Description
$date mixed