isLeap()
isLeap() : string
Check if current DateTimeObject is a leap year.
Returns
string —Boolean true if it's a leap year.
DateObject validator
largerThan(integer|string|\DateTime|\app\framework\Component\StdLib\StdObject\DateTimeObject\DateTimeObject $time) : boolean
Check if current datetime is larger than $time.
integer|string|\DateTime|\app\framework\Component\StdLib\StdObject\DateTimeObject\DateTimeObject | $time | Date to compare to. |
Boolean true if current date object is larger than the provided $time.
smallerThan(integer|string|\DateTime|\app\framework\Component\StdLib\StdObject\DateTimeObject\DateTimeObject $time) : boolean
Check if current datetime smaller than $time.
integer|string|\DateTime|\app\framework\Component\StdLib\StdObject\DateTimeObject\DateTimeObject | $time | Date to compare to. |
Boolean true if current date object is smaller than the provided $time.